diff options
| author | Bernard Xiong <[email protected]> | 2019-05-12 17:56:11 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2019-05-12 17:56:11 +0800 |
| commit | 5d36fa78c0aed2adc23891ad3cee349b522ba0c3 (patch) | |
| tree | fcd814cd3e15399adb455e5a451bce1dcd89e2e9 /components/libc/pthreads/pthread.h | |
| parent | b7cc4e9c8ad48f49e20f310298a1adbe1567d710 (diff) | |
[pthreads] Use pthread table for pthread management.
Diffstat (limited to 'components/libc/pthreads/pthread.h')
| -rw-r--r-- | components/libc/pthreads/pthread.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/components/libc/pthreads/pthread.h b/components/libc/pthreads/pthread.h index c86ee90b0e..7bb72b726c 100644 --- a/components/libc/pthreads/pthread.h +++ b/components/libc/pthreads/pthread.h @@ -32,7 +32,7 @@ extern "C" { #define PTHREAD_EXPLICIT_SCHED 0 #define PTHREAD_INHERIT_SCHED 1 -typedef rt_thread_t pthread_t; +typedef long pthread_t; typedef long pthread_condattr_t; typedef long pthread_rwlockattr_t; typedef long pthread_mutexattr_t; @@ -172,10 +172,7 @@ rt_inline int pthread_equal (pthread_t t1, pthread_t t2) return t1 == t2; } -rt_inline pthread_t pthread_self (void) -{ - return rt_thread_self(); -} +pthread_t pthread_self (void); void pthread_exit (void *value_ptr); int pthread_once(pthread_once_t * once_control, void (*init_routine) (void)); |
