libre  0.6.0
Functions
re_mqueue.h File Reference

Thread Safe Message Queue. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int mqueue_alloc (struct mqueue **mqp, mqueue_h *h, void *arg)
 Allocate a new Message Queue. More...
 
int mqueue_push (struct mqueue *mq, int id, void *data)
 Push a new message onto the Message Queue. More...
 

Detailed Description

Thread Safe Message Queue.

Copyright (C) 2010 Creytiv.com

Definition in file re_mqueue.h.

Function Documentation

◆ mqueue_alloc()

int mqueue_alloc ( struct mqueue **  mqp,
mqueue_h *  h,
void *  arg 
)

Allocate a new Message Queue.

Parameters
mqpPointer to allocated Message Queue
hMessage handler
argHandler argument
Returns
0 if success, otherwise errorcode

Definition at line 99 of file mqueue.c.

◆ mqueue_push()

int mqueue_push ( struct mqueue mq,
int  id,
void *  data 
)

Push a new message onto the Message Queue.

Parameters
mqMessage Queue
idGeneral purpose Identifier
dataApplication data
Returns
0 if success, otherwise errorcode

Definition at line 151 of file mqueue.c.