Searched refs:tsd_key (Results 1 – 6 of 6) sorted by relevance
| /freebsd/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/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/contrib/llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_linux.cpp | 227 struct tsd_key { struct 228 tsd_key() : key(nullptr) {} in tsd_key() function 229 ~tsd_key() { in ~tsd_key() argument 237 static thread_local struct tsd_key key; 265 static pthread_key_t tsd_key; variable 271 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit() 286 pthread_setspecific(tsd_key, (void *)t); in SetCurrentThread() 293 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in MsanTSDDtor()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_thread.cpp | 94 static pthread_key_t tsd_key; variable 100 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in DFsanTSDInit() 113 pthread_setspecific(tsd_key, t); in SetCurrentThread() 120 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in DFsanTSDDtor()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/nsan/ |
| H A D | nsan_thread.cpp | 124 static pthread_key_t tsd_key; variable 130 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in NsanTSDInit() 143 pthread_setspecific(tsd_key, t); in SetCurrentThread() 150 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in NsanTSDDtor()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_linux.cpp | 312 static pthread_key_t tsd_key; variable 317 CHECK_EQ(0, pthread_setspecific(tsd_key, in HwasanTSDThreadInit() 324 CHECK_EQ(0, pthread_setspecific(tsd_key, (void *)(iterations - 1))); in HwasanTSDDtor() 333 CHECK_EQ(0, pthread_key_create(&tsd_key, HwasanTSDDtor)); in HwasanTSDInit()
|