27 #include <shm_arena.h>
35 ptr = (
int *)
sm_get(
sizeof(
int),
"count");
38 printf(
"sm_get() failed\n");
static int sm_unlock(const void *ptr)
release a shared memory segment read-write lock
static void * sm_get(size_t size, const char *name)
get a shared memory segment
static int sm_wrlock(const void *ptr)
acquire a shared memory segment write lock