2010-02-13 Jb Evain <jbevain@novell.com>
[mono-project.git] / mono / io-layer / semaphore-private.h
blob8414f4e9205266daca7305346e1f59a15f6ddd93
1 /*
2 * semaphore-private.h: Private definitions for semaphore handles
4 * Author:
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
8 */
10 #ifndef _WAPI_SEMAPHORE_PRIVATE_H_
11 #define _WAPI_SEMAPHORE_PRIVATE_H_
13 #include <config.h>
14 #include <glib.h>
16 extern struct _WapiHandleOps _wapi_sem_ops;
17 extern struct _WapiHandleOps _wapi_namedsem_ops;
19 extern void _wapi_sem_details (gpointer handle_info);
21 /* emulate sem_t, so that we can prod the internal state more easily */
22 struct _WapiHandle_sem
24 guint32 val;
25 gint32 max;
28 struct _WapiHandle_namedsem
30 WapiSharedNamespace sharedns;
31 guint32 val;
32 gint32 max;
35 #endif /* _WAPI_SEMAPHORE_PRIVATE_H_ */