summaryrefslogtreecommitdiff
path: root/components/pthreads/semaphore.h
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-11-24 11:04:08 +0000
committerbernard.xiong <[email protected]>2010-11-24 11:04:08 +0000
commitf67eb617f599e7b2c8a37eb7d74cd66d37febfc3 (patch)
tree4d75dfecbd11ab775d211839d0d0ad2f303ecb60 /components/pthreads/semaphore.h
parent56c6c301bcd923372797d6415ff38756705b92d0 (diff)
add pthread initialization in libc_system_init.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1107 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads/semaphore.h')
-rw-r--r--components/pthreads/semaphore.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/components/pthreads/semaphore.h b/components/pthreads/semaphore.h
index 09e4cab938..974da7e6c3 100644
--- a/components/pthreads/semaphore.h
+++ b/components/pthreads/semaphore.h
@@ -17,14 +17,7 @@ struct posix_sem
/* next posix semaphore */
struct posix_sem* next;
};
-typedef struct posix_sem posix_sem_t;
-
-struct semdes
-{
- rt_uint32_t flags;
- posix_sem_t* sem;
-};
-typedef struct semdes sem_t;
+typedef struct posix_sem sem_t;
int sem_close(sem_t *sem);
int sem_destroy(sem_t *sem);