summaryrefslogtreecommitdiff
path: root/components/pthreads/pthread.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-11-15 00:25:37 +0000
committer[email protected] <[email protected]>2010-11-15 00:25:37 +0000
commit468db501592d68a3576a42cc42e2c7c7fb527b8d (patch)
tree9cde7754f5147ecccfb013528cf8bf1a85eef60d /components/pthreads/pthread.h
parent45461f8afe87d96c3bdb5fe26c94c323dff1452d (diff)
update pthreads components.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1046 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads/pthread.h')
-rw-r--r--components/pthreads/pthread.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/pthreads/pthread.h b/components/pthreads/pthread.h
index dfa3c11050..3ff7231707 100644
--- a/components/pthreads/pthread.h
+++ b/components/pthreads/pthread.h
@@ -23,6 +23,8 @@
typedef rt_thread_t pthread_t;
typedef long pthread_condattr_t;
+typedef long pthread_rwlockattr_t;
+
typedef int pthread_key_t;
typedef int pthread_once_t;
@@ -34,8 +36,8 @@ enum {
PTHREAD_CANCELED
};
-#define PTHREAD_COND_INITIALIZER
-#define PTHREAD_RWLOCK_INITIALIZER
+#define PTHREAD_COND_INITIALIZER {-1, 0}
+#define PTHREAD_RWLOCK_INITIALIZER {-1, 0}
#define PTHREAD_MUTEX_INITIALIZER {-1, 0}
#define PTHREAD_CREATE_JOINABLE 0x00