MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / pthread_setspecific

Function pthread_setspecific

vm/ByteCodeTranslator/src/cn1_win_compat.c:121–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121int pthread_setspecific(pthread_key_t key, const void* value) {
122 if (key == 0) {
123 return EINVAL;
124 }
125 return TlsSetValue((DWORD)(key - 1), (LPVOID)value) ? 0 : EINVAL;
126}
127
128/* --- threads --- */
129struct cn1_thread_start {

Callers 1

thread_starterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected