diff options
| author | bernard.xiong <[email protected]> | 2010-11-24 11:04:08 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-11-24 11:04:08 +0000 |
| commit | f67eb617f599e7b2c8a37eb7d74cd66d37febfc3 (patch) | |
| tree | 4d75dfecbd11ab775d211839d0d0ad2f303ecb60 /components/pthreads/semaphore.h | |
| parent | 56c6c301bcd923372797d6415ff38756705b92d0 (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.h | 9 |
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);
|
