MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / rpmalloc_thread_finalize

Function rpmalloc_thread_finalize

source/extern/rpmalloc.c:3057–3066  ·  view source on GitHub ↗

Finalize thread, orphan heap

Source from the content-addressed store, hash-verified

3055
3056//! Finalize thread, orphan heap
3057void
3058rpmalloc_thread_finalize(int release_caches) {
3059 heap_t* heap = get_thread_heap_raw();
3060 if (heap)
3061 _rpmalloc_heap_release_raw(heap, release_caches);
3062 set_thread_heap(0);
3063#if defined(_WIN32) && (!defined(BUILD_DYNAMIC_LINK) || !BUILD_DYNAMIC_LINK)
3064 FlsSetValue(fls_key, 0);
3065#endif
3066}
3067
3068int
3069rpmalloc_is_thread_initialized(void) {

Callers 4

DllMainFunction · 0.85
thread_destructorFunction · 0.85
rpmalloc_finalizeFunction · 0.85

Calls 3

get_thread_heap_rawFunction · 0.85
set_thread_heapFunction · 0.85

Tested by

no test coverage detected