diff options
| author | [email protected] <[email protected]> | 2010-11-15 00:25:37 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2010-11-15 00:25:37 +0000 |
| commit | 468db501592d68a3576a42cc42e2c7c7fb527b8d (patch) | |
| tree | 9cde7754f5147ecccfb013528cf8bf1a85eef60d /components/pthreads/pthread_rwlock.c | |
| parent | 45461f8afe87d96c3bdb5fe26c94c323dff1452d (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_rwlock.c')
| -rw-r--r-- | components/pthreads/pthread_rwlock.c | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/components/pthreads/pthread_rwlock.c b/components/pthreads/pthread_rwlock.c index e69de29bb2..343b9a51a1 100644 --- a/components/pthreads/pthread_rwlock.c +++ b/components/pthreads/pthread_rwlock.c @@ -0,0 +1,82 @@ +#include "pthread_rwlock.h"
+
+int pthread_rwlockattr_init (pthread_rwlockattr_t * attr)
+{
+ if (!attr) return EINVAL;
+ *attr = PTHREAD_PROCESS_PRIVATE;
+
+ return 0;
+}
+
+int pthread_rwlockattr_destroy (pthread_rwlockattr_t * attr)
+{
+ if (!attr) return EINVAL;
+
+ return 0;
+}
+
+int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * attr, int *pshared)
+{
+ if (!attr || !pshared) return EINVAL;
+
+ *pshared = PTHREAD_PROCESS_PRIVATE;
+ return 0;
+}
+
+int pthread_rwlockattr_setpshared (pthread_rwlockattr_t * attr, int pshared)
+{
+ if (!attr || pshared != PTHREAD_PROCESS_PRIVATE) return EINVAL;
+
+ return 0;
+}
+
+int pthread_rwlock_init (pthread_rwlock_t * rwlock, const pthread_rwlockattr_t * attr)
+{
+ return 0;
+}
+
+int pthread_rwlock_destroy (pthread_rwlock_t * rwlock)
+{
+ return 0;
+}
+
+int pthread_rwlock_rdlock (pthread_rwlock_t * rwlock)
+{
+ return 0;
+}
+
+int pthread_rwlock_tryrdlock (pthread_rwlock_t * rwlock)
+{
+ if (!rwlock) return EINVAL;
+ return 0;
+}
+
+int pthread_rwlock_timedrdlock (pthread_rwlock_t * rwlock, const struct timespec *abstime)
+{
+ if (!rwlock) return EINVAL;
+ return 0;
+}
+
+int pthread_rwlock_timedwrlock (pthread_rwlock_t * rwlock, const struct timespec *abstime)
+{
+ if (!rwlock) return EINVAL;
+ return 0;
+}
+
+int pthread_rwlock_trywrlock (pthread_rwlock_t * rwlock)
+{
+ if (!rwlock) return EINVAL;
+ return 0;
+}
+
+int pthread_rwlock_unlock (pthread_rwlock_t * rwlock)
+{
+ if (!rwlock) return EINVAL;
+
+ return 0;
+}
+
+int pthread_rwlock_wrlock (pthread_rwlock_t * rwlock)
+{
+ return 0;
+}
|
