aboutsummaryrefslogtreecommitdiff
path: root/src/platform/platform.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-10 22:48:57 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-10 22:48:57 -0800
commit6d8cabe8f4f1abc304c60dd832e05f18f069451b (patch)
treefe43d68bb4fb4357b60cb5d85b15de7736ea08ff /src/platform/platform.h
parent6a7f5a2a113cd63add78ad72601683529899b2ed (diff)
downloadnng-6d8cabe8f4f1abc304c60dd832e05f18f069451b.tar.gz
nng-6d8cabe8f4f1abc304c60dd832e05f18f069451b.tar.bz2
nng-6d8cabe8f4f1abc304c60dd832e05f18f069451b.zip
Condition variable implementation.
Diffstat (limited to 'src/platform/platform.h')
-rw-r--r--src/platform/platform.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/platform/platform.h b/src/platform/platform.h
index 05f55be9..36ec207c 100644
--- a/src/platform/platform.h
+++ b/src/platform/platform.h
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
+#include <string.h>
/*
* These are the APIs that a platform must implement to support nng.
@@ -95,22 +96,19 @@ void nni_cond_destroy(nni_cond_t);
* nni_cond_broadcast wakes all waiters on the condition. This should be
* called with the lock held.
*/
-int nni_cond_broadcast(nni_cond_t);
+void nni_cond_broadcast(nni_cond_t);
/*
* nni_cond_signal wakes a signal waiter.
*/
-int nni_cond_signal(nni_cond_t);
+void nni_cond_signal(nni_cond_t);
/*
* nni_condwait waits for a wake up on the condition variable. The
* associated lock is atomically released and reacquired upon wake up.
- * Callers can be spuriously woken. The return value is 0 on success,
- * or an error code. (Most implementations should never return an error.)
- * Most callers will ignore the return value. The associated lock must
- * be held.
+ * Callers can be spuriously woken. The associated lock must be held.
*/
-int nni_cond_wait(nni_cond_t);
+void nni_cond_wait(nni_cond_t);
/*
* nni_cond_timedwait waits for a wakeup on the condition variable, just