[io-layer] Extract wapi_create_thread_handle
[mono.git] / mono / io-layer / mutexes.h
1 /*
2  * mutexes.h: Mutex handles
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_MUTEXES_H_
11 #define _WAPI_MUTEXES_H_
12
13 #include <glib.h>
14
15 #include <pthread.h>
16
17 G_BEGIN_DECLS
18
19 extern gpointer CreateMutex (WapiSecurityAttributes *security, gboolean owned,
20                              const gunichar2 *name);
21 extern gboolean ReleaseMutex (gpointer handle);
22 extern gpointer OpenMutex (guint32 access, gboolean inherit,
23                            const gunichar2 *name);
24
25 void
26 wapi_mutex_abandon (gpointer data, pid_t pid, pthread_t tid);
27
28 G_END_DECLS
29
30 #endif /* _WAPI_MUTEXES_H_ */