mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
msgq empty status is checked when thread needs to be stopped
This commit is contained in:
parent
a079c6dcfe
commit
4da3365767
4 changed files with 30 additions and 5 deletions
|
|
@ -79,6 +79,15 @@ CORE_DECLARE(int) msgq_recv(msgq_id id, char *msg, int msglen);
|
|||
CORE_DECLARE(int) msgq_timedrecv(msgq_id id, char *msg, int msglen,
|
||||
c_time_t timeout);
|
||||
|
||||
/**
|
||||
* @param id
|
||||
*
|
||||
* @return 1(true) or 0(false)
|
||||
* If ring buffer is empty, return 1(true)
|
||||
* If ring buffer is not empty, return 0(false)
|
||||
*/
|
||||
CORE_DECLARE(int) msgq_is_empty(msgq_id id);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue