From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/thread%2Fmtx_init.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 devdocs/c/thread%2Fmtx_init.html (limited to 'devdocs/c/thread%2Fmtx_init.html') diff --git a/devdocs/c/thread%2Fmtx_init.html b/devdocs/c/thread%2Fmtx_init.html new file mode 100644 index 00000000..b500c70e --- /dev/null +++ b/devdocs/c/thread%2Fmtx_init.html @@ -0,0 +1,31 @@ +

mtx_init

Defined in header <threads.h>
int mtx_init( mtx_t* mutex, int type );
+
(since C11)

Creates a new mutex object with type. The object pointed to by mutex is set to an identifier of the newly created mutex.

+

type must have one of the following values:

+

Parameters

+ + +
mutex - pointer to the mutex to initialize
type - the type of the mutex

Return value

thrd_success if successful, thrd_error otherwise.

+

References

See also

+ + + +
C++ documentation for mutex
C++ documentation for timed_mutex
C++ documentation for recursive_mutex
C++ documentation for recursive_timed_mutex
+

+ © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
+ https://en.cppreference.com/w/c/thread/mtx_init +

+
-- cgit v1.2.3