2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / io-layer / mutex-private.h
blob4faa3b720233cd3281fd9708c0ad7a94359ae53c
1 /*
2 * mutex-private.h: Private definitions for mutex handles
4 * Author:
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
8 */
10 #ifndef _WAPI_MUTEX_PRIVATE_H_
11 #define _WAPI_MUTEX_PRIVATE_H_
13 #include <config.h>
14 #include <glib.h>
15 #include <pthread.h>
16 #include <sys/types.h>
18 extern struct _WapiHandleOps _wapi_mutex_ops;
19 extern struct _WapiHandleOps _wapi_namedmutex_ops;
21 extern void _wapi_mutex_details (gpointer handle_info);
23 struct _WapiHandle_mutex
25 pid_t pid;
26 pthread_t tid;
27 guint32 recursion;
30 struct _WapiHandle_namedmutex
32 WapiSharedNamespace sharedns;
33 pid_t pid;
34 pthread_t tid;
35 guint32 recursion;
38 extern void _wapi_mutex_abandon (gpointer data, pid_t pid, pthread_t tid);
40 #endif /* _WAPI_MUTEX_PRIVATE_H_ */