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

Function mi_key_create

system/lib/mimalloc/src/threadlocal.c:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static mi_thread_local_t mi_key_create( size_t index, size_t version ) {
57 mi_assert_internal(version != 0);
58 mi_assert_internal(index <= MI_TLS_IDX_MASK);
59 const mi_thread_local_t key = ((version << MI_TLS_IDX_BITS) | index);
60 mi_assert_internal(key != 0);
61 return key;
62}
63
64
65// dynamically reallocate the thread local slots when needed

Callers 1

mi_thread_local_claimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected