[io-layer] Remove pseudo global handle
[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 #include "handles-private.h"
18
19 /* emulate sem_t, so that we can prod the internal state more easily */
20 struct _WapiHandle_sem
21 {
22         guint32 val;
23         gint32 max;
24 };
25
26 struct _WapiHandle_namedsem
27 {
28         struct _WapiHandle_sem s;
29         WapiSharedNamespace sharedns;
30 };
31
32 void
33 _wapi_semaphore_init (void);
34
35 #endif /* _WAPI_SEMAPHORE_PRIVATE_H_ */