xref: /aosp_15_r20/external/musl/src/include/pthread.h (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1*c9945492SAndroid Build Coastguard Worker #ifndef PTHREAD_H
2*c9945492SAndroid Build Coastguard Worker #define PTHREAD_H
3*c9945492SAndroid Build Coastguard Worker 
4*c9945492SAndroid Build Coastguard Worker #include "../../include/pthread.h"
5*c9945492SAndroid Build Coastguard Worker 
6*c9945492SAndroid Build Coastguard Worker hidden int __pthread_once(pthread_once_t *, void (*)(void));
7*c9945492SAndroid Build Coastguard Worker hidden void __pthread_testcancel(void);
8*c9945492SAndroid Build Coastguard Worker hidden int __pthread_setcancelstate(int, int *);
9*c9945492SAndroid Build Coastguard Worker hidden int __pthread_create(pthread_t *restrict, const pthread_attr_t *restrict, void *(*)(void *), void *restrict);
10*c9945492SAndroid Build Coastguard Worker hidden _Noreturn void __pthread_exit(void *);
11*c9945492SAndroid Build Coastguard Worker hidden int __pthread_join(pthread_t, void **);
12*c9945492SAndroid Build Coastguard Worker hidden int __pthread_mutex_lock(pthread_mutex_t *);
13*c9945492SAndroid Build Coastguard Worker hidden int __pthread_mutex_trylock(pthread_mutex_t *);
14*c9945492SAndroid Build Coastguard Worker hidden int __pthread_mutex_trylock_owner(pthread_mutex_t *);
15*c9945492SAndroid Build Coastguard Worker hidden int __pthread_mutex_timedlock(pthread_mutex_t *restrict, const struct timespec *restrict);
16*c9945492SAndroid Build Coastguard Worker hidden int __pthread_mutex_unlock(pthread_mutex_t *);
17*c9945492SAndroid Build Coastguard Worker hidden int __private_cond_signal(pthread_cond_t *, int);
18*c9945492SAndroid Build Coastguard Worker hidden int __pthread_cond_timedwait(pthread_cond_t *restrict, pthread_mutex_t *restrict, const struct timespec *restrict);
19*c9945492SAndroid Build Coastguard Worker hidden int __pthread_key_create(pthread_key_t *, void (*)(void *));
20*c9945492SAndroid Build Coastguard Worker hidden int __pthread_key_delete(pthread_key_t);
21*c9945492SAndroid Build Coastguard Worker hidden int __pthread_rwlock_rdlock(pthread_rwlock_t *);
22*c9945492SAndroid Build Coastguard Worker hidden int __pthread_rwlock_tryrdlock(pthread_rwlock_t *);
23*c9945492SAndroid Build Coastguard Worker hidden int __pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
24*c9945492SAndroid Build Coastguard Worker hidden int __pthread_rwlock_wrlock(pthread_rwlock_t *);
25*c9945492SAndroid Build Coastguard Worker hidden int __pthread_rwlock_trywrlock(pthread_rwlock_t *);
26*c9945492SAndroid Build Coastguard Worker hidden int __pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
27*c9945492SAndroid Build Coastguard Worker hidden int __pthread_rwlock_unlock(pthread_rwlock_t *);
28*c9945492SAndroid Build Coastguard Worker 
29*c9945492SAndroid Build Coastguard Worker #endif
30