Using running process to determine mono exe path on windows
[mono.git] / mono / io-layer / mutexes.h
index 3caa06e5d45c9d3dc7cc69005599e658841ce0d9..d1b7a68d67ca5695d893100748693cdaa6e652ca 100644 (file)
 
 #include <glib.h>
 
-extern gpointer CreateMutex(WapiSecurityAttributes *security, gboolean owned,
-                           const guchar *name);
-extern gboolean ReleaseMutex(gpointer handle);
+#include <pthread.h>
+
+G_BEGIN_DECLS
+
+extern gpointer CreateMutex (WapiSecurityAttributes *security, gboolean owned,
+                            const gunichar2 *name);
+extern gboolean ReleaseMutex (gpointer handle);
+extern gpointer OpenMutex (guint32 access, gboolean inherit,
+                          const gunichar2 *name);
+
+void
+wapi_mutex_abandon (gpointer data, pid_t pid, pthread_t tid);
+
+G_END_DECLS
 
 #endif /* _WAPI_MUTEXES_H_ */