Home
last modified time | relevance | path

Searched refs:tsd_key (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_posix.cpp28 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 Dmsan_linux.cpp227 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 Ddfsan_thread.cpp99 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/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_linux.cpp312 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()