From ddddeebc5989eadcebd575fe10f6ee44fbed3ca0 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Mon, 20 Nov 2023 19:09:05 -0500 Subject: [PATCH] Add `try_pop` method for haggis_mq --- include/mq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mq.h b/include/mq.h index 13a810d..69bc10c 100644 --- a/include/mq.h +++ b/include/mq.h @@ -41,5 +41,6 @@ void haggis_msg_deinit(haggis_msg *msg); int haggis_mq_init(haggis_mq *mq); int haggis_mq_push(haggis_mq *queue, haggis_msg *msg); haggis_msg* haggis_mq_pop(haggis_mq *queue); +haggis_msg* haggis_mq_try_pop(haggis_mq *queue); #endif // !MQ_H