[io-layer] Move WapiHandleType and WapiHandleOps to handles-private.h
[mono.git] / mono / io-layer / mutex-private.h
1 /*
2  * mutex-private.h:  Private definitions for mutex handles
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_MUTEX_PRIVATE_H_
11 #define _WAPI_MUTEX_PRIVATE_H_
12
13 #include <config.h>
14 #include <glib.h>
15 #include <pthread.h>
16 #include <sys/types.h>
17
18 #include "wapi-private.h"
19 #include "handles-private.h"
20
21 extern WapiHandleOps _wapi_mutex_ops;
22 extern WapiHandleOps _wapi_namedmutex_ops;
23
24 struct _WapiHandle_mutex
25 {
26         pthread_t tid;
27         guint32 recursion;
28 };
29
30 struct _WapiHandle_namedmutex 
31 {
32         struct _WapiHandle_mutex m;
33         WapiSharedNamespace sharedns;
34 };
35
36 extern void _wapi_mutex_abandon (gpointer data, pid_t pid, pthread_t tid);
37
38 #endif /* _WAPI_MUTEX_PRIVATE_H_ */