GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e057e1
)
Assert for missing feature
author
Tomas Mudrunka
<tomas@mudrunka.cz>
Tue, 29 Jun 2021 12:57:18 +0000
(14:57 +0200)
committer
Tomas Mudrunka
<tomas@mudrunka.cz>
Tue, 29 Jun 2021 12:57:18 +0000
(14:57 +0200)
c/pthread_extra/pthread_msgqueue.c
patch
|
blob
|
blame
|
history
diff --git
a/c/pthread_extra/pthread_msgqueue.c
b/c/pthread_extra/pthread_msgqueue.c
index 52395d6d3944b5b4c8484357992b6864bd9f844c..44ad399ecb9ef195b78cae64994af93cd4c685db 100644
(file)
--- a/
c/pthread_extra/pthread_msgqueue.c
+++ b/
c/pthread_extra/pthread_msgqueue.c
@@
-75,6
+75,9
@@
bool pthread_mq_send_generic(pthread_mq_t *mq, void * data, pthread_mq_flags_t f
}
}
}
}
+ //Handle overwrite
+ assert(!(flags & PTHREAD_XMQ_OVERW) && "FIXME: Overwrite not implemented yet!");
+
//Write data to queue
bool to_front = (flags & PTHREAD_XMQ_FRONT);
size_t idx = ( ( mq->head_idx + (to_front?mq->msg_count_max-1:mq->msg_count) ) % mq->msg_count_max );
//Write data to queue
bool to_front = (flags & PTHREAD_XMQ_FRONT);
size_t idx = ( ( mq->head_idx + (to_front?mq->msg_count_max-1:mq->msg_count) ) % mq->msg_count_max );
This page took
0.125904 seconds
and
4
git commands to generate.