summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pthread.h b/pthread.h
index 5c31af2..e9278c2 100644
--- a/pthread.h
+++ b/pthread.h
@@ -74,8 +74,13 @@ struct timespec {
pointer to an object in memory. */
#define PTHREAD_CANCELED ((void *) 1)
+#define PTHREAD_MUTEX_INITIALIZER {0 /* ignore internals */ }
+
typedef struct _pthread * pthread_t;
-typedef CRITICAL_SECTION pthread_mutex_t;
+typedef struct {
+ int valid;
+ CRITICAL_SECTION cs;
+} pthread_mutex_t;
typedef DWORD pthread_key_t;