Home
last modified time | relevance | path

Searched refs:tsd (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/third_party/mesa/src/src/mapi/mapi/
Du_thread.h116 u_tsd_init(struct u_tsd *tsd) in u_tsd_init() argument
118 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) { in u_tsd_init()
122 tsd->initMagic = INIT_MAGIC; in u_tsd_init()
127 u_tsd_get(struct u_tsd *tsd) in u_tsd_get() argument
129 if (tsd->initMagic != INIT_MAGIC) { in u_tsd_get()
130 u_tsd_init(tsd); in u_tsd_get()
132 return pthread_getspecific(tsd->key); in u_tsd_get()
137 u_tsd_set(struct u_tsd *tsd, void *ptr) in u_tsd_set() argument
139 if (tsd->initMagic != INIT_MAGIC) { in u_tsd_set()
140 u_tsd_init(tsd); in u_tsd_set()
[all …]
/external/mesa3d/src/mapi/mapi/
Du_thread.h116 u_tsd_init(struct u_tsd *tsd) in u_tsd_init() argument
118 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) { in u_tsd_init()
122 tsd->initMagic = INIT_MAGIC; in u_tsd_init()
127 u_tsd_get(struct u_tsd *tsd) in u_tsd_get() argument
129 if (tsd->initMagic != INIT_MAGIC) { in u_tsd_get()
130 u_tsd_init(tsd); in u_tsd_get()
132 return pthread_getspecific(tsd->key); in u_tsd_get()
137 u_tsd_set(struct u_tsd *tsd, void *ptr) in u_tsd_set() argument
139 if (tsd->initMagic != INIT_MAGIC) { in u_tsd_set()
140 u_tsd_init(tsd); in u_tsd_set()
[all …]
/external/mesa3d/src/mapi/glapi/
Dglthread.h16 #define _glthread_InitTSD(tsd) u_tsd_init(tsd); argument
17 #define _glthread_DestroyTSD(tsd) u_tsd_destroy(tsd); argument
18 #define _glthread_GetTSD(tsd) u_tsd_get(tsd); argument
19 #define _glthread_SetTSD(tsd, ptr) u_tsd_set(tsd, ptr); argument
/external/chromium_org/third_party/mesa/src/src/mapi/glapi/
Dglthread.h16 #define _glthread_InitTSD(tsd) u_tsd_init(tsd); argument
17 #define _glthread_DestroyTSD(tsd) u_tsd_destroy(tsd); argument
18 #define _glthread_GetTSD(tsd) u_tsd_get(tsd); argument
19 #define _glthread_SetTSD(tsd, ptr) u_tsd_set(tsd, ptr); argument
/external/compiler-rt/lib/asan/
Dasan_posix.cc60 void AsanTSDInit(void (*destructor)(void *tsd)) { in AsanTSDInit() argument
71 void AsanTSDSet(void *tsd) { in AsanTSDSet() argument
73 pthread_setspecific(tsd_key, tsd); in AsanTSDSet()
76 void PlatformTSDDtor(void *tsd) { in PlatformTSDDtor() argument
77 AsanThreadContext *context = (AsanThreadContext*)tsd; in PlatformTSDDtor()
80 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in PlatformTSDDtor()
83 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
Dasan_win.cc43 void AsanTSDInit(void (*destructor)(void *tsd)) { in AsanTSDInit() argument
53 void AsanTSDSet(void *tsd) { in AsanTSDSet() argument
55 fake_tsd = tsd; in AsanTSDSet()
58 void PlatformTSDDtor(void *tsd) { in PlatformTSDDtor() argument
59 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
Dasan_internal.h92 void AsanTSDInit(void (*destructor)(void *tsd));
94 void AsanTSDSet(void *tsd);
95 void PlatformTSDDtor(void *tsd);
Dasan_thread.cc89 void AsanThread::TSDDtor(void *tsd) { in TSDDtor() argument
90 AsanThreadContext *context = (AsanThreadContext*)tsd; in TSDDtor()
Dasan_thread.h59 static void TSDDtor(void *tsd);
/external/compiler-rt/lib/msan/
Dmsan_linux.cc109 void MsanTSDInit(void (*destructor)(void *tsd)) { in MsanTSDInit() argument
120 void MsanTSDSet(void *tsd) { in MsanTSDSet() argument
122 pthread_setspecific(tsd_key, tsd); in MsanTSDSet()
125 void MsanTSDDtor(void *tsd) { in MsanTSDDtor() argument
126 MsanThread *t = (MsanThread*)tsd; in MsanTSDDtor()
129 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in MsanTSDDtor()
132 MsanThread::TSDDtor(tsd); in MsanTSDDtor()
Dmsan.h136 void MsanTSDInit(void (*destructor)(void *tsd));
138 void MsanTSDSet(void *tsd);
139 void MsanTSDDtor(void *tsd);
Dmsan_thread.cc50 void MsanThread::TSDDtor(void *tsd) { in TSDDtor() argument
51 MsanThread *t = (MsanThread*)tsd; in TSDDtor()
Dmsan_thread.h25 static void TSDDtor(void *tsd);
/external/mesa3d/src/gallium/auxiliary/os/
Dos_thread.h459 pipe_tsd_init(pipe_tsd *tsd) in pipe_tsd_init() argument
462 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) { in pipe_tsd_init()
469 tsd->initMagic = PIPE_TSD_INIT_MAGIC; in pipe_tsd_init()
473 pipe_tsd_get(pipe_tsd *tsd) in pipe_tsd_get() argument
475 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) { in pipe_tsd_get()
476 pipe_tsd_init(tsd); in pipe_tsd_get()
479 return pthread_getspecific(tsd->key); in pipe_tsd_get()
490 pipe_tsd_set(pipe_tsd *tsd, void *value) in pipe_tsd_set() argument
492 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) { in pipe_tsd_set()
493 pipe_tsd_init(tsd); in pipe_tsd_set()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/os/
Dos_thread.h459 pipe_tsd_init(pipe_tsd *tsd) in pipe_tsd_init() argument
462 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) { in pipe_tsd_init()
469 tsd->initMagic = PIPE_TSD_INIT_MAGIC; in pipe_tsd_init()
473 pipe_tsd_get(pipe_tsd *tsd) in pipe_tsd_get() argument
475 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) { in pipe_tsd_get()
476 pipe_tsd_init(tsd); in pipe_tsd_get()
479 return pthread_getspecific(tsd->key); in pipe_tsd_get()
490 pipe_tsd_set(pipe_tsd *tsd, void *value) in pipe_tsd_set() argument
492 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) { in pipe_tsd_set()
493 pipe_tsd_init(tsd); in pipe_tsd_set()
[all …]
/external/chromium_org/third_party/libxml/src/
Dthreads.c668 xmlGlobalState *tsd = xmlNewGlobalState(); in xmlGetGlobalState() local
669 if (tsd == NULL) in xmlGetGlobalState()
672 pthread_setspecific(globalkey, tsd); in xmlGetGlobalState()
673 return (tsd); in xmlGetGlobalState()
695 xmlGlobalState *tsd = xmlNewGlobalState(); in xmlGetGlobalState()
697 if (tsd == NULL) in xmlGetGlobalState()
704 xmlFreeGlobalState(tsd); in xmlGetGlobalState()
707 p->memory = tsd; in xmlGetGlobalState()
712 TlsSetValue(globalkey, tsd); in xmlGetGlobalState()
726 return (tsd); in xmlGetGlobalState()
[all …]
/external/libxml2/
Dthreads.c669 xmlGlobalState *tsd = xmlNewGlobalState(); in xmlGetGlobalState() local
670 if (tsd == NULL) in xmlGetGlobalState()
673 pthread_setspecific(globalkey, tsd); in xmlGetGlobalState()
674 return (tsd); in xmlGetGlobalState()
696 xmlGlobalState *tsd = xmlNewGlobalState(); in xmlGetGlobalState()
698 if (tsd == NULL) in xmlGetGlobalState()
705 xmlFreeGlobalState(tsd); in xmlGetGlobalState()
708 p->memory = tsd; in xmlGetGlobalState()
713 TlsSetValue(globalkey, tsd); in xmlGetGlobalState()
727 return (tsd); in xmlGetGlobalState()
[all …]
/external/compiler-rt/test/asan/TestCases/Linux/
Dtsd_dtor_leak.cc20 void Dtor(void *tsd) { in Dtor() argument
22 free(tsd); in Dtor()
/external/jemalloc/android/test/
Drun_unit.sh22 $test_dir/tsd
/external/jemalloc/
DAndroid.mk50 src/tsd.c \
152 test/unit/tsd.c \
DMakefile.in85 $(srcroot)src/tcache.c $(srcroot)src/util.c $(srcroot)src/tsd.c
131 $(srcroot)test/unit/tsd.c \
/external/compiler-rt/lib/asan/tests/
Dasan_mac_test_helpers.mm155 void CallFreeOnWorkqueue(void *tsd) {
157 dispatch_block_t block_dealloc = ^{ worker_do_deallocate(tsd); };
Dasan_test.cc151 void TSDDestructor(void *tsd) { in TSDDestructor() argument
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
DMakefile77 tsd.obj \
513 tsd.obj: tsd.c $(TSD_SRCS) $(INCL)
/external/jemalloc/include/jemalloc/internal/
Djemalloc_internal.h.in313 #include "jemalloc/internal/tsd.h"
340 #include "jemalloc/internal/tsd.h"
412 #include "jemalloc/internal/tsd.h"
439 #include "jemalloc/internal/tsd.h"

12