28 #include <shm_arena.h>
30 static int running = 1;
32 static void catcher(
int sig)
34 printf(
"catch signal %d\n", sig);
44 signal(SIGINT, catcher);
46 q =
smq_get(NULL,
sizeof(
int), 10,
"q_count", O_CREAT);
49 printf(
"smq_get() failed\n");
smq_t smq_get(shm_arena_t arena, size_t element_size, int q_length, const char *name, int flags)
get a Shared Multi-Queue object
void * smq_write(smq_t q)
write an entry into the Shared Multi-Queue
struct smq * smq_t
shared multi-queue object
int smq_unlock(smq_t q)
release Shared Multi-Queue read or write lock
int smq_wrlock(smq_t q, int num)
acquire Shared Multi-Queue write-lock