|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] stubdom: add dummy pthread_mutexattr*
stubdom: add dummy pthread_mutexattr*
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
diff -r c2472ded5c7c extras/mini-os/include/posix/pthread.h
--- a/extras/mini-os/include/posix/pthread.h Tue Aug 26 15:16:57 2008 +0100
+++ b/extras/mini-os/include/posix/pthread.h Tue Aug 26 16:43:27 2008 +0100
@@ -31,8 +31,15 @@ static inline int pthread_key_delete(pth
+typedef struct {} pthread_mutexattr_t;
+static inline int pthread_mutexattr_init(pthread_mutexattr_t *mattr) { return
0; }
+#define PTHREAD_MUTEX_NORMAL 0
+#define PTHREAD_MUTEX_RECURSIVE 1
+static inline int pthread_mutexattr_settype(pthread_mutexattr_t *mattr, int
kind) { return 0; }
+static inline int pthread_mutexattr_destroy(pthread_mutexattr_t *mattr) {
return 0; }
typedef struct {} pthread_mutex_t;
#define PTHREAD_MUTEX_INITIALIZER {}
+static inline int pthread_mutex_init(pthread_mutex_t *mutex,
pthread_mutexattr_t *mattr) { return 0; }
static inline int pthread_mutex_lock(pthread_mutex_t *mutex) { return 0; }
static inline int pthread_mutex_unlock(pthread_mutex_t *mutex) { return 0; }
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] stubdom: add dummy pthread_mutexattr*,
Samuel Thibault <=
|
|
|
|
|