[sre] Wrap mono_image_create_token with HANDLE_FUNCTION_{ENTER,RETURN}
[mono-project.git] / mono / metadata / w32semaphore.h
blob13c963a10a4b7d0dc025fd141ac3d49a769a5169
1 /**
2 * \file
3 */
5 #ifndef _MONO_METADATA_W32SEMAPHORE_H_
6 #define _MONO_METADATA_W32SEMAPHORE_H_
8 #include <config.h>
9 #include <glib.h>
11 #include "object.h"
12 #include "w32handle-namespace.h"
14 void
15 mono_w32semaphore_init (void);
17 gpointer
18 ves_icall_System_Threading_Semaphore_CreateSemaphore_internal (gint32 initialCount, gint32 maximumCount, MonoString *name, gint32 *error);
20 MonoBoolean
21 ves_icall_System_Threading_Semaphore_ReleaseSemaphore_internal (gpointer handle, gint32 releaseCount, gint32 *prevcount);
23 gpointer
24 ves_icall_System_Threading_Semaphore_OpenSemaphore_internal (MonoString *name, gint32 rights, gint32 *error);
26 typedef struct MonoW32HandleNamedSemaphore MonoW32HandleNamedSemaphore;
28 MonoW32HandleNamespace*
29 mono_w32semaphore_get_namespace (MonoW32HandleNamedSemaphore *semaphore);
31 #endif /* _MONO_METADATA_W32SEMAPHORE_H_ */