From c4050ecbf846d138a07bfaf238306fb862b9a3d5 Mon Sep 17 00:00:00 2001 From: "Staysail Systems, Inc" Date: Sun, 2 Aug 2020 12:14:46 -0700 Subject: Manual page updates for v1.3.2 --- man/v1.3.2/nng_cv_alloc.3supp.html | 86 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 man/v1.3.2/nng_cv_alloc.3supp.html (limited to 'man/v1.3.2/nng_cv_alloc.3supp.html') diff --git a/man/v1.3.2/nng_cv_alloc.3supp.html b/man/v1.3.2/nng_cv_alloc.3supp.html new file mode 100644 index 00000000..1a7fb820 --- /dev/null +++ b/man/v1.3.2/nng_cv_alloc.3supp.html @@ -0,0 +1,86 @@ +--- +version: v1.3.2 +layout: manpage_v2 +--- +

nng_cv_alloc(3supp)

+
+

NAME

+
+
+

nng_cv_alloc - allocate condition variable

+
+
+
+
+

SYNOPSIS

+
+
+
+
#include <nng/nng.h>
+#include <nng/supplemental/util/platform.h>
+
+typedef struct nng_cv nng_cv;
+
+int nng_cv_alloc(nng_cv **cvp, nng_mtx *mtx);
+
+
+
+
+
+

DESCRIPTION

+
+
+

The nng_cv_alloc() function allocates a condition variable, using +the mutex mtx, and returns it in cvp.

+
+
+

Every condition variable is associated with a mutex, which must be +owned when a thread waits for the condition using +nng_cv_wait() or +nng_cv_until(). +The mutex must also be owned when signaling the condition using the +nng_cv_wake() or +nng_cv_wake1() functions.

+
+
+
+
+

RETURN VALUES

+
+
+

This function returns 0 on success, and non-zero otherwise.

+
+
+
+
+

ERRORS

+
+
+ + + + + +
+NNG_ENOMEM + +

Insufficient free memory exists.

+
+
+
+
+
+

SEE ALSO

+ +
-- cgit v1.2.3-70-g09d2