From: Tomas Mudrunka Date: Tue, 29 Jun 2021 12:57:18 +0000 (+0200) Subject: Assert for missing feature X-Git-Url: http://git.harvie.cz/?p=mirrors%2FPrograms.git;a=commitdiff_plain;h=fe2f8298009c4e8fc3b7904b07dc2ba3afc4a045 Assert for missing feature --- diff --git a/c/pthread_extra/pthread_msgqueue.c b/c/pthread_extra/pthread_msgqueue.c index 52395d6..44ad399 100644 --- 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 );