lock_ptc.c\thread\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/thread/lock_ptc.c
blob: 7adedab75b93c168efb0a4ce523b27d4452341d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <pthread.h>
static pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;
void __inhibit_ptc()
{
	pthread_rwlock_wrlock(&lock);
}
void __acquire_ptc()
{
	pthread_rwlock_rdlock(&lock);
}
void __release_ptc()
{
	pthread_rwlock_unlock(&lock);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月10日 12:11:27 +0000

AltStyle によって変換されたページ (->オリジナル) /