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

Function set_thread_heap

source/extern/rpmalloc.c:821–830  ·  view source on GitHub ↗

Set the current thread heap

Source from the content-addressed store, hash-verified

819
820//! Set the current thread heap
821static void
822set_thread_heap(heap_t* heap) {
823#if ((defined(__APPLE__) || defined(__HAIKU__)) && ENABLE_PRELOAD) || defined(__TINYC__)
824 pthread_setspecific(_memory_thread_heap, heap);
825#else
826 _memory_thread_heap = heap;
827#endif
828 if (heap)
829 heap->owner_thread = get_thread_id();
830}
831
832//! Set main thread ID
833extern void

Callers 4

_rpmalloc_heap_releaseFunction · 0.85
rpmalloc_thread_finalizeFunction · 0.85

Calls 1

get_thread_idFunction · 0.85

Tested by

no test coverage detected