Displaying 1 result from an estimated 1 matches for "_posix_pthread_h".
2008 May 22
0
[PATCH] stubdom: fix and clean pthread minimal support
...f-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r f4a293cbec1b extras/mini-os/include/posix/pthread.h
--- a/extras/mini-os/include/posix/pthread.h Thu May 22 14:28:40 2008 +0100
+++ b/extras/mini-os/include/posix/pthread.h Thu May 22 16:08:29 2008 +0100
@@ -1,18 +1,56 @@
#ifndef _POSIX_PTHREAD_H
#define _POSIX_PTHREAD_H
+#include <stdlib.h>
+
/* Let''s be single-threaded for now. */
-typedef void *pthread_key_t;
-typedef struct {} pthread_mutex_t, pthread_once_t;
+typedef struct {
+ void *ptr;
+} *pthread_key_t;
+static inline int pthread_key_create(pthread_key_t *k...