Merge pull request #3262 from lindenlab/add_continuations_test
[mono.git] / mono / io-layer / semaphore-private.h
1 /*
2  * semaphore-private.h:  Private definitions for semaphore handles
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_SEMAPHORE_PRIVATE_H_
11 #define _WAPI_SEMAPHORE_PRIVATE_H_
12
13 #include <config.h>
14 #include <glib.h>
15
16 #include "wapi-private.h"
17
18 /* emulate sem_t, so that we can prod the internal state more easily */
19 struct _WapiHandle_sem
20 {
21         guint32 val;
22         gint32 max;
23 };
24
25 struct _WapiHandle_namedsem
26 {
27         struct _WapiHandle_sem s;
28         WapiSharedNamespace sharedns;
29 };
30
31 void
32 _wapi_semaphore_init (void);
33
34 #endif /* _WAPI_SEMAPHORE_PRIVATE_H_ */