Initialize the allocator and setup global data
| 2564 | |
| 2565 | //! Initialize the allocator and setup global data |
| 2566 | extern inline int |
| 2567 | rpmalloc_initialize(void) { |
| 2568 | if (_rpmalloc_initialized) { |
| 2569 | rpmalloc_thread_initialize(); |
| 2570 | return 0; |
| 2571 | } |
| 2572 | return rpmalloc_initialize_config(0); |
| 2573 | } |
| 2574 | |
| 2575 | int |
| 2576 | rpmalloc_initialize_config(const rpmalloc_config_t* config) { |