MCPcopy Create free account
hub / github.com/acl-dev/acl / pthread_key_create

Function pthread_key_create

lib_fiber/c/src/common/pthread_patch.c:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45int pthread_key_create(pthread_key_t* key, void (*destructor)(void*))
46{
47 if (!key)
48 return -1;
49
50 DWORD k = FlsAlloc((PFLS_KEY_FUNCTION)destructor);
51
52 if (k == FLS_OUT_OF_INDEXES)
53 return -1;
54
55 *key = k;
56 return 0;
57}
58
59int pthread_setspecific(pthread_key_t key, const void* value)
60{

Callers 9

thread_onceFunction · 0.85
thread_onceFunction · 0.85
acl_fiber_scheduleFunction · 0.85
thread_initFunction · 0.85
thread_initFunction · 0.85
once_initFunction · 0.85
thread_buf_initFunction · 0.85
thread_initFunction · 0.85
thread_initFunction · 0.85

Calls 7

pthread_onceFunction · 0.85
hash_keyFunction · 0.85
pthread_mutex_lockFunction · 0.85
pthread_mutex_unlockFunction · 0.85
mem_callocFunction · 0.85
htable_findFunction · 0.70
htable_enterFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…