Home
last modified time | relevance | path

Searched refs:pthread_key_t (Results 1 – 25 of 29) sorted by relevance

12

/aosp12/bionic/libc/bionic/
H A Dpthread_key.cpp63 static_assert(sizeof(pthread_key_t) == sizeof(int) && static_cast<pthread_key_t>(-1) < 0,
66 static inline bool KeyInValidRange(pthread_key_t key) { in KeyInValidRange()
124 int pthread_key_create(pthread_key_t* key, void (*key_destructor)(void*)) { in pthread_key_create()
143 int pthread_key_delete(pthread_key_t key) { in pthread_key_delete()
159 void* pthread_getspecific(pthread_key_t key) { in pthread_getspecific()
178 int pthread_setspecific(pthread_key_t key, const void* ptr) { in pthread_setspecific()
/aosp12/bionic/benchmarks/
H A Dpthread_benchmark.cpp33 pthread_key_t key; in BM_pthread_getspecific()
45 pthread_key_t key; in BM_pthread_setspecific()
216 pthread_key_t key; in BM_pthread_key_create()
229 pthread_key_t key; in BM_pthread_key_delete()
/aosp12/bionic/tests/headers/posix/
H A Dpthread_h.c80 TYPE(pthread_key_t); in pthread_h()
139 FUNCTION(pthread_getspecific, void* (*f)(pthread_key_t)); in pthread_h()
141 FUNCTION(pthread_key_create, int (*f)(pthread_key_t*, void (*)(void*))); in pthread_h()
142 FUNCTION(pthread_key_delete, int (*f)(pthread_key_t)); in pthread_h()
202 FUNCTION(pthread_setspecific, int (*f)(pthread_key_t, const void*)); in pthread_h()
H A Dsys_types_h.c54 TYPE(pthread_key_t); in sys_types_h()
/aosp12/bionic/libc/include/
H A Dpthread.h170 void* pthread_getspecific(pthread_key_t __key);
176 int pthread_key_create(pthread_key_t* __key_ptr, void (*__key_destructor)(void*));
177 int pthread_key_delete(pthread_key_t __key);
289 int pthread_setspecific(pthread_key_t __key, const void* __value);
H A Dthreads.h49 typedef pthread_key_t tss_t;
/aosp12/bionic/libc/malloc_debug/
H A DRecordData.h160 pthread_key_t key() { return key_; } in key()
166 pthread_key_t key_;
H A Ddebug_disable.cpp35 pthread_key_t g_disable_key;
/aosp12/bionic/libc/include/bits/
H A Dpthread_types.h70 typedef int pthread_key_t; typedef
/aosp12/system/unwinding/libunwindstack/tests/
H A DMemoryThreadCacheTest.cpp170 std::vector<pthread_key_t> keys(kMaxKeysToCreate); in TEST_F()
197 for (pthread_key_t& key : keys) { in TEST_F()
/aosp12/frameworks/native/opengl/libs/EGL/
H A Degl_tls.h29 static pthread_key_t sKey;
H A Degldefs.h81 extern pthread_key_t gGLWrapperKey;
H A Degl_tls.cpp28 pthread_key_t egl_tls_t::sKey = TLS_KEY_NOT_INITIALIZED;
H A Degl.cpp36 pthread_key_t gGLWrapperKey = -1;
/aosp12/system/unwinding/libunwindstack/
H A DMemoryCache.h90 std::optional<pthread_key_t> thread_cache_;
/aosp12/bionic/libc/dns/resolv/
H A Dres_state.c96 static pthread_key_t _res_key;
/aosp12/frameworks/rs/cpu_ref/
H A Drsd_cpu.h118 static pthread_key_t getThreadTLSKey();
H A DrsCpuCore.cpp35 static pthread_key_t gThreadTLSKey = 0;
81 pthread_key_t RsdCpuReference::getThreadTLSKey(){ return gThreadTLSKey; } in getThreadTLSKey()
/aosp12/art/sigchainlib/
H A Dsigchain.cc152 static pthread_key_t GetHandlingSignalKey() { in GetHandlingSignalKey()
153 static pthread_key_t key; in GetHandlingSignalKey()
/aosp12/packages/providers/MediaProvider/jni/
H A DMediaProviderWrapper.h250 static pthread_key_t gJniEnvKey;
/aosp12/bionic/tests/
H A Dpthread_test.cpp51 pthread_key_t key; in TEST()
72 std::vector<pthread_key_t> keys; in TEST()
81 pthread_key_t key; in TEST()
90 pthread_key_t key = keys.back(); in TEST()
97 std::vector<pthread_key_t> keys; in TEST()
103 pthread_key_t key; in TEST()
125 pthread_key_t key; in TEST()
138 pthread_key_t key; in TEST()
159 return pthread_getspecific(*reinterpret_cast<pthread_key_t*>(key)); in DirtyKeyFn()
163 pthread_key_t key; in TEST()
[all …]
/aosp12/system/memory/libmemunreachable/tests/
H A DMemUnreachable_test.cpp158 pthread_key_t key; in TEST_F()
/aosp12/system/libhwbinder/
H A DIPCThreadState.cpp281 static pthread_key_t gTLS = 0;
288 const pthread_key_t k = gTLS; in self()
318 const pthread_key_t k = gTLS; in selfOrNull()
/aosp12/frameworks/native/libs/binder/
H A DIPCThreadState.cpp284 static pthread_key_t gTLS = 0;
292 const pthread_key_t k = gTLS; in self()
322 const pthread_key_t k = gTLS; in selfOrNull()
/aosp12/system/core/libutils/
H A DLooper.cpp60 static pthread_key_t gTLSKey = 0;

12