Searched refs:tsd_key (Results 1 – 5 of 5) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/asan/ |
| H A D | asan_posix.cpp | 78 struct tsd_key { struct 79 tsd_key() : key(nullptr) {} in tsd_key() argument 80 ~tsd_key() { in ~tsd_key() argument 88 static thread_local struct tsd_key key; 116 static pthread_key_t tsd_key; variable 121 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in AsanTSDInit() 126 return pthread_getspecific(tsd_key); in AsanTSDGet() 131 pthread_setspecific(tsd_key, tsd); in AsanTSDSet() 138 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in PlatformTSDDtor()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/memprof/ |
| H A D | memprof_posix.cpp | 28 static pthread_key_t tsd_key; variable 33 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in TSDInit() 38 return pthread_getspecific(tsd_key); in TSDGet() 43 pthread_setspecific(tsd_key, tsd); in TSDSet() 50 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in PlatformTSDDtor()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_linux.cpp | 226 struct tsd_key { struct 227 tsd_key() : key(nullptr) {} in tsd_key() function 228 ~tsd_key() { in ~tsd_key() argument 236 static thread_local struct tsd_key key; 264 static pthread_key_t tsd_key; variable 270 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit() 285 pthread_setspecific(tsd_key, (void *)t); in SetCurrentThread() 292 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in MsanTSDDtor()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_thread.cpp | 99 static pthread_key_t tsd_key; variable 105 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in DFsanTSDInit() 118 pthread_setspecific(tsd_key, t); in SetCurrentThread() 125 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in DFsanTSDDtor()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_linux.cpp | 302 static pthread_key_t tsd_key; variable 307 CHECK_EQ(0, pthread_setspecific(tsd_key, in HwasanTSDThreadInit() 314 CHECK_EQ(0, pthread_setspecific(tsd_key, (void *)(iterations - 1))); in HwasanTSDDtor() 323 CHECK_EQ(0, pthread_key_create(&tsd_key, HwasanTSDDtor)); in HwasanTSDInit()
|