summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/unix/pthread-barrier.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-24 14:31:18 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-02-24 14:31:18 (GMT)
commit8429068d7c37d06e53b871811760419ab3e36455 (patch)
tree7816dda07e96de420a213c4c3f1a37ca480890b4 /Utilities/cmlibuv/src/unix/pthread-barrier.c
parent32cb4172bd6b98810f9638076e978a6bc569f6ae (diff)
parent741b7621b3c71406359d75098f9bdf8d3567662f (diff)
downloadCMake-8429068d7c37d06e53b871811760419ab3e36455.zip
CMake-8429068d7c37d06e53b871811760419ab3e36455.tar.gz
CMake-8429068d7c37d06e53b871811760419ab3e36455.tar.bz2
Merge topic 'update-libuv'
741b7621 Merge branch 'upstream-libuv' into update-libuv 1f661e87 libuv 2017-02-21 (52ae8264)
Diffstat (limited to 'Utilities/cmlibuv/src/unix/pthread-barrier.c')
-rw-r--r--Utilities/cmlibuv/src/unix/pthread-barrier.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/unix/pthread-barrier.c b/Utilities/cmlibuv/src/unix/pthread-barrier.c
index f57bf25..b6e604d 100644
--- a/Utilities/cmlibuv/src/unix/pthread-barrier.c
+++ b/Utilities/cmlibuv/src/unix/pthread-barrier.c
@@ -73,7 +73,8 @@ int pthread_barrier_wait(pthread_barrier_t* barrier) {
if (++b->in == b->threshold) {
b->in = 0;
b->out = b->threshold - 1;
- assert(pthread_cond_signal(&b->cond) == 0);
+ rc = pthread_cond_signal(&b->cond);
+ assert(rc == 0);
pthread_mutex_unlock(&b->mutex);
return PTHREAD_BARRIER_SERIAL_THREAD;