Searched defs:tsd (Results 1 - 13 of 13) sorted by relevance

/external/compiler-rt/test/asan/TestCases/Linux/
H A Dtsd_dtor_leak.cc1 // Regression test for a leak in tsd:
20 void Dtor(void *tsd) { argument
22 free(tsd);
/external/compiler-rt/lib/asan/
H A Dasan_posix.cc60 void AsanTSDInit(void (*destructor)(void *tsd)) { argument
71 void AsanTSDSet(void *tsd) { argument
73 pthread_setspecific(tsd_key, tsd);
76 void PlatformTSDDtor(void *tsd) { argument
77 AsanThreadContext *context = (AsanThreadContext*)tsd;
80 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd));
83 AsanThread::TSDDtor(tsd);
H A Dasan_win.cc43 void AsanTSDInit(void (*destructor)(void *tsd)) { argument
53 void AsanTSDSet(void *tsd) { argument
55 fake_tsd = tsd;
58 void PlatformTSDDtor(void *tsd) { argument
59 AsanThread::TSDDtor(tsd);
H A Dasan_thread.cc89 void AsanThread::TSDDtor(void *tsd) { argument
90 AsanThreadContext *context = (AsanThreadContext*)tsd;
/external/chromium_org/third_party/mesa/src/src/mapi/mapi/
H A Du_thread.h116 u_tsd_init(struct u_tsd *tsd) argument
118 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) {
122 tsd->initMagic = INIT_MAGIC;
127 u_tsd_get(struct u_tsd *tsd) argument
129 if (tsd->initMagic != INIT_MAGIC) {
130 u_tsd_init(tsd);
132 return pthread_getspecific(tsd->key);
137 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
139 if (tsd->initMagic != INIT_MAGIC) {
140 u_tsd_init(tsd);
182 u_tsd_init(struct u_tsd *tsd) argument
194 u_tsd_destroy(struct u_tsd *tsd) argument
205 u_tsd_get(struct u_tsd *tsd) argument
215 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
260 u_tsd_init(struct u_tsd *tsd) argument
267 u_tsd_get(struct u_tsd *tsd) argument
275 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
[all...]
/external/compiler-rt/lib/msan/
H A Dmsan_thread.cc50 void MsanThread::TSDDtor(void *tsd) { argument
51 MsanThread *t = (MsanThread*)tsd;
H A Dmsan_linux.cc109 void MsanTSDInit(void (*destructor)(void *tsd)) { argument
120 void MsanTSDSet(void *tsd) { argument
122 pthread_setspecific(tsd_key, tsd);
125 void MsanTSDDtor(void *tsd) { argument
126 MsanThread *t = (MsanThread*)tsd;
129 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd));
132 MsanThread::TSDDtor(tsd);
/external/mesa3d/src/mapi/mapi/
H A Du_thread.h116 u_tsd_init(struct u_tsd *tsd) argument
118 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) {
122 tsd->initMagic = INIT_MAGIC;
127 u_tsd_get(struct u_tsd *tsd) argument
129 if (tsd->initMagic != INIT_MAGIC) {
130 u_tsd_init(tsd);
132 return pthread_getspecific(tsd->key);
137 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
139 if (tsd->initMagic != INIT_MAGIC) {
140 u_tsd_init(tsd);
182 u_tsd_init(struct u_tsd *tsd) argument
194 u_tsd_destroy(struct u_tsd *tsd) argument
205 u_tsd_get(struct u_tsd *tsd) argument
215 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
260 u_tsd_init(struct u_tsd *tsd) argument
267 u_tsd_get(struct u_tsd *tsd) argument
275 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/os/
H A Dos_thread.h459 pipe_tsd_init(pipe_tsd *tsd) argument
462 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) {
469 tsd->initMagic = PIPE_TSD_INIT_MAGIC;
473 pipe_tsd_get(pipe_tsd *tsd) argument
475 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) {
476 pipe_tsd_init(tsd);
479 return pthread_getspecific(tsd->key);
490 pipe_tsd_set(pipe_tsd *tsd, void *value) argument
492 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) {
493 pipe_tsd_init(tsd);
[all...]
/external/mesa3d/src/gallium/auxiliary/os/
H A Dos_thread.h459 pipe_tsd_init(pipe_tsd *tsd) argument
462 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) {
469 tsd->initMagic = PIPE_TSD_INIT_MAGIC;
473 pipe_tsd_get(pipe_tsd *tsd) argument
475 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) {
476 pipe_tsd_init(tsd);
479 return pthread_getspecific(tsd->key);
490 pipe_tsd_set(pipe_tsd *tsd, void *value) argument
492 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) {
493 pipe_tsd_init(tsd);
[all...]
/external/chromium_org/third_party/libxml/src/
H A Dthreads.c668 xmlGlobalState *tsd = xmlNewGlobalState(); local
669 if (tsd == NULL)
672 pthread_setspecific(globalkey, tsd);
673 return (tsd);
695 xmlGlobalState *tsd = xmlNewGlobalState();
697 if (tsd == NULL)
704 xmlFreeGlobalState(tsd);
707 p->memory = tsd;
712 TlsSetValue(globalkey, tsd);
726 return (tsd);
[all...]
/external/libxml2/
H A Dthreads.c669 xmlGlobalState *tsd = xmlNewGlobalState(); local
670 if (tsd == NULL)
673 pthread_setspecific(globalkey, tsd);
674 return (tsd);
696 xmlGlobalState *tsd = xmlNewGlobalState();
698 if (tsd == NULL)
705 xmlFreeGlobalState(tsd);
708 p->memory = tsd;
713 TlsSetValue(globalkey, tsd);
727 return (tsd);
[all...]
/external/compiler-rt/lib/asan/tests/
H A Dasan_test.cc151 void TSDDestructor(void *tsd) { argument

Completed in 482 milliseconds