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

Function rpmalloc_heap_thread_set_current

source/extern/rpmalloc.c:3605–3613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3603}
3604
3605extern inline void
3606rpmalloc_heap_thread_set_current(rpmalloc_heap_t* heap) {
3607 heap_t* prev_heap = get_thread_heap_raw();
3608 if (prev_heap != heap) {
3609 set_thread_heap(heap);
3610 if (prev_heap)
3611 rpmalloc_heap_release(prev_heap);
3612 }
3613}
3614
3615extern inline rpmalloc_heap_t*
3616rpmalloc_get_heap_for_ptr(void* ptr)

Callers

nothing calls this directly

Calls 3

get_thread_heap_rawFunction · 0.85
set_thread_heapFunction · 0.85
rpmalloc_heap_releaseFunction · 0.85

Tested by

no test coverage detected