| 54 | } |
| 55 | |
| 56 | static 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 |
no outgoing calls
no test coverage detected