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:
1601303
)
No assert
author
Tomas Mudrunka
<tomas@mudrunka.cz>
Wed, 23 Jun 2021 15:13:29 +0000
(17:13 +0200)
committer
Tomas Mudrunka
<tomas@mudrunka.cz>
Wed, 23 Jun 2021 15:13:29 +0000
(17:13 +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 168dc7f676fb7eb57b3a684ca11de7aadbcb878a..ff1a37f865e65afdab274ebc76f061b2748d848e 100644
(file)
--- 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);
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) {
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);
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) {
ret = pthread_cond_timedwait(&mq->cond_readable, &mq->lock, abs_timeout);
}
if(ret) {
This page took
0.182192 seconds
and
4
git commands to generate.