Add try_pop
method for haggis_mq
This commit is contained in:
parent
a7a0f6542d
commit
ddddeebc59
1 changed files with 1 additions and 0 deletions
|
@ -41,5 +41,6 @@ void haggis_msg_deinit(haggis_msg *msg);
|
||||||
int haggis_mq_init(haggis_mq *mq);
|
int haggis_mq_init(haggis_mq *mq);
|
||||||
int haggis_mq_push(haggis_mq *queue, haggis_msg *msg);
|
int haggis_mq_push(haggis_mq *queue, haggis_msg *msg);
|
||||||
haggis_msg* haggis_mq_pop(haggis_mq *queue);
|
haggis_msg* haggis_mq_pop(haggis_mq *queue);
|
||||||
|
haggis_msg* haggis_mq_try_pop(haggis_mq *queue);
|
||||||
|
|
||||||
#endif // !MQ_H
|
#endif // !MQ_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue