MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / pthread_getspecific

Function pthread_getspecific

system/lib/pthread/library_pthread_stub.c:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162weak_alias(__pthread_key_create, pthread_key_create);
163
164void* pthread_getspecific(pthread_key_t key) {
165 if (key < 0 || key >= PTHREAD_KEYS_MAX) {
166 return NULL;
167 }
168 if (!tls_key_used[key]) {
169 return NULL;
170 }
171 return tls_entries[key];
172}
173
174int pthread_setspecific(pthread_key_t key, const void* value) {
175 if (key < 0 || key >= PTHREAD_KEYS_MAX) {

Callers 15

thread_mainFunction · 0.85
worker_mainFunction · 0.85
mainFunction · 0.85
thread_mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
ThreadMainFunction · 0.85
glBufferDataFunction · 0.85
glBufferSubDataFunction · 0.85
glTexImage2DFunction · 0.85

Calls

no outgoing calls

Tested by 5

mainFunction · 0.68
thread_mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
ThreadMainFunction · 0.68