29 #include <sys/types.h>
41 #include "debug_lock.h"
42 #include "shm_arena.h"
44 #include "arena_lock.h"
60 pthread_mutex_lock(&_shm_create_arena_mutex);
62 if(_shm_default_arena) ret = 1;
64 _shm_default_arena = arena;
66 pthread_mutex_unlock(&_shm_create_arena_mutex);
69 "%s(arena=%p) %s default arena",
70 __func__, arena, (ret)?
"replaced":
"set");
int shm_arena_set_default(const shm_arena_t arena)
set the local default arena object