Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / w32semaphore.h
1 /**
2  * \file
3  */
4
5 #ifndef _MONO_METADATA_W32SEMAPHORE_H_
6 #define _MONO_METADATA_W32SEMAPHORE_H_
7
8 #include <config.h>
9 #include <glib.h>
10
11 #include "object.h"
12 #include "w32handle-namespace.h"
13
14 void
15 mono_w32semaphore_init (void);
16
17 gpointer
18 ves_icall_System_Threading_Semaphore_CreateSemaphore_internal (gint32 initialCount, gint32 maximumCount, MonoString *name, gint32 *error);
19
20 MonoBoolean
21 ves_icall_System_Threading_Semaphore_ReleaseSemaphore_internal (gpointer handle, gint32 releaseCount, gint32 *prevcount);
22
23 gpointer
24 ves_icall_System_Threading_Semaphore_OpenSemaphore_internal (MonoString *name, gint32 rights, gint32 *error);
25
26 typedef struct MonoW32HandleNamedSemaphore MonoW32HandleNamedSemaphore;
27
28 MonoW32HandleNamespace*
29 mono_w32semaphore_get_namespace (MonoW32HandleNamedSemaphore *semaphore);
30
31 #endif /* _MONO_METADATA_W32SEMAPHORE_H_ */