2009-02-25 Zoltan Varga <vargaz@gmail.com>
[mono-debugger.git] / mono / io-layer / semaphores.h
blob1cdaee02bfb2f822ed62c23567724bb78203187e
1 /*
2 * semaphores.h: Semaphore handles
4 * Author:
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
8 */
10 #ifndef _WAPI_SEMAPHORES_H_
11 #define _WAPI_SEMAPHORES_H_
13 #include <glib.h>
15 G_BEGIN_DECLS
17 extern gpointer CreateSemaphore(WapiSecurityAttributes *security,
18 gint32 initial, gint32 max,
19 const gunichar2 *name);
20 extern gboolean ReleaseSemaphore(gpointer handle, gint32 count,
21 gint32 *prevcount);
22 extern gpointer OpenSemaphore (guint32 access, gboolean inherit,
23 const gunichar2 *name);
25 G_END_DECLS
26 #endif /* _WAPI_SEMAPHORES_H_ */