This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[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 extern struct _WapiHandleOps _wapi_mutex_ops;
19
20 struct _WapiHandle_mutex
21 {
22         WapiSharedNamespace sharedns;
23         pid_t pid;
24         pthread_t tid;
25         guint32 recursion;
26 };
27
28 struct _WapiHandlePrivate_mutex
29 {
30         int dummy;
31 };
32
33 extern void _wapi_mutex_check_abandoned (pid_t pid, pthread_t tid);
34
35 #endif /* _WAPI_MUTEX_PRIVATE_H_ */