2010-11-03 11:34:14 +00:00
|
|
|
/**
|
|
|
|
* @file re_mqueue.h Thread Safe Message Queue
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Creytiv.com
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct mqueue;
|
|
|
|
|
2013-03-09 11:00:38 +00:00
|
|
|
typedef void (mqueue_h)(int id, void *data, void *arg);
|
2010-11-03 11:34:14 +00:00
|
|
|
|
2013-03-09 11:00:38 +00:00
|
|
|
int mqueue_alloc(struct mqueue **mqp, mqueue_h *h, void *arg);
|
|
|
|
int mqueue_push(struct mqueue *mq, int id, void *data);
|