Initialize thread, assign heap
| 1421 | |
| 1422 | //! Initialize thread, assign heap |
| 1423 | void |
| 1424 | rpmalloc_thread_initialize(void) { |
| 1425 | if (!_memory_thread_heap) { |
| 1426 | heap_t* heap = _memory_allocate_heap(); |
| 1427 | #if ENABLE_STATISTICS |
| 1428 | heap->thread_to_global = 0; |
| 1429 | heap->global_to_thread = 0; |
| 1430 | #endif |
| 1431 | _memory_thread_heap = heap; |
| 1432 | atomic_incr32(&_memory_active_heaps); |
| 1433 | } |
| 1434 | } |
| 1435 | |
| 1436 | //! Finalize thread, orphan heap |
| 1437 | void |
no test coverage detected