From d7a4a138ba371e8a969a7fde8219c88870d288fc Mon Sep 17 00:00:00 2001 From: "Staysail Systems, Inc" Date: Thu, 22 Feb 2024 01:03:04 -0800 Subject: Manual page updates for v1.7.2 --- man/v1.7.2/nng_cv_alloc.3supp.html | 87 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 man/v1.7.2/nng_cv_alloc.3supp.html (limited to 'man/v1.7.2/nng_cv_alloc.3supp.html') diff --git a/man/v1.7.2/nng_cv_alloc.3supp.html b/man/v1.7.2/nng_cv_alloc.3supp.html new file mode 100644 index 00000000..6663d78e --- /dev/null +++ b/man/v1.7.2/nng_cv_alloc.3supp.html @@ -0,0 +1,87 @@ +--- +version: v1.7.2 +layout: manpage_v2 +title: nng_cv_alloc(3supp) +--- +

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