Assert for missing feature
authorTomas Mudrunka <tomas@mudrunka.cz>
Tue, 29 Jun 2021 12:57:18 +0000 (14:57 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Tue, 29 Jun 2021 12:57:18 +0000 (14:57 +0200)
c/pthread_extra/pthread_msgqueue.c

index 52395d6d3944b5b4c8484357992b6864bd9f844c..44ad399ecb9ef195b78cae64994af93cd4c685db 100644 (file)
@@ -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 );
This page took 0.14718 seconds and 4 git commands to generate.