GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Vacant
[mirrors/Programs.git]
/
c
/
pthread_extra
/
pthread_msgqueue.c
diff --git
a/c/pthread_extra/pthread_msgqueue.c
b/c/pthread_extra/pthread_msgqueue.c
index ff1a37f865e65afdab274ebc76f061b2748d848e..b8562965eef620cce7a21c634bab85129071c4c9 100644
(file)
--- a/
c/pthread_extra/pthread_msgqueue.c
+++ b/
c/pthread_extra/pthread_msgqueue.c
@@
-39,6
+39,10
@@
size_t pthread_mq_waiting(pthread_mq_t *mq) {
return mq->msg_count;
}
+size_t pthread_mq_vacant(pthread_mq_t *mq) {
+ return (mq->msg_count_max - mq->msg_count);
+}
+
bool pthread_mq_reset(pthread_mq_t *mq) {
if(pthread_mutex_lock(&mq->lock)) return false;
mq->msg_count = 0;
This page took
0.176066 seconds
and
4
git commands to generate.