summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_cond.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-04-13 03:09:34 +0000
committerdelphij <delphij@FreeBSD.org>2006-04-13 03:09:34 +0000
commitcf4eda6001a5a1ba6853aeafcfffff149d29a614 (patch)
tree85f034c174482bb7ac3e017c2115d4e91afabd11 /lib/libpthread/thread/thr_cond.c
parent5d98c3bea27622322ffa23d69a5d3f1314e71bfc (diff)
downloadFreeBSD-src-cf4eda6001a5a1ba6853aeafcfffff149d29a614.zip
FreeBSD-src-cf4eda6001a5a1ba6853aeafcfffff149d29a614.tar.gz
Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY.
Ok'ed by: davidxu
Diffstat (limited to 'lib/libpthread/thread/thr_cond.c')
-rw-r--r--lib/libpthread/thread/thr_cond.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_cond.c b/lib/libpthread/thread/thr_cond.c
index fc86378..e39ae63 100644
--- a/lib/libpthread/thread/thr_cond.c
+++ b/lib/libpthread/thread/thr_cond.c
@@ -336,7 +336,7 @@ _pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
curthread);
/* Check for no more waiters: */
- if (TAILQ_FIRST(&(*cond)->c_queue) == NULL)
+ if (TAILQ_EMPTY(&(*cond)->c_queue))
(*cond)->c_mutex = NULL;
}
}
@@ -536,7 +536,7 @@ _pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex,
curthread);
/* Check for no more waiters: */
- if (TAILQ_FIRST(&(*cond)->c_queue) == NULL)
+ if (TAILQ_EMPTY(&(*cond)->c_queue))
(*cond)->c_mutex = NULL;
}
@@ -631,7 +631,7 @@ _pthread_cond_signal(pthread_cond_t * cond)
kse_wakeup(kmbx);
}
/* Check for no more waiters: */
- if (TAILQ_FIRST(&(*cond)->c_queue) == NULL)
+ if (TAILQ_EMPTY(&(*cond)->c_queue))
(*cond)->c_mutex = NULL;
break;
@@ -758,7 +758,7 @@ cond_wait_backout(void *arg)
cond_queue_remove(cond, curthread);
/* Check for no more waiters: */
- if (TAILQ_FIRST(&cond->c_queue) == NULL)
+ if (TAILQ_EMPTY(&cond->c_queue))
cond->c_mutex = NULL;
break;
OpenPOWER on IntegriCloud