fix and overhaul dlsym depedency order, always record direct deps
[musl.git] / src / thread / lock_ptc.c
blob7adedab75b93c168efb0a4ce523b27d4452341d3
1 #include <pthread.h>
3 static pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;
5 void __inhibit_ptc()
7 pthread_rwlock_wrlock(&lock);
10 void __acquire_ptc()
12 pthread_rwlock_rdlock(&lock);
15 void __release_ptc()
17 pthread_rwlock_unlock(&lock);