From e7d1ce5c0f321dc0e5894527c1d1401369e46a1b Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Wed, 23 Jun 2021 17:13:29 +0200 Subject: [PATCH] No assert --- c/pthread_extra/pthread_msgqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/pthread_extra/pthread_msgqueue.c b/c/pthread_extra/pthread_msgqueue.c index 168dc7f..ff1a37f 100644 --- a/c/pthread_extra/pthread_msgqueue.c +++ b/c/pthread_extra/pthread_msgqueue.c @@ -62,7 +62,7 @@ bool pthread_mq_send_generic(pthread_mq_t *mq, void * data, bool to_front, const ret = pthread_cond_wait(&mq->cond_writable, &mq->lock); } else { //printf("STimed: %p\n", abs_timeout); - assert(abs_timeout != NULL); + //assert(abs_timeout != NULL); ret = pthread_cond_timedwait(&mq->cond_writable, &mq->lock, abs_timeout); } if(ret) { @@ -96,7 +96,7 @@ bool pthread_mq_receive_generic(pthread_mq_t *mq, void * data, bool peek, const ret = pthread_cond_wait(&mq->cond_readable, &mq->lock); } else { //printf("RTimed: %p\n", abs_timeout); - assert(abs_timeout != NULL); + //assert(abs_timeout != NULL); ret = pthread_cond_timedwait(&mq->cond_readable, &mq->lock, abs_timeout); } if(ret) { -- 2.30.2