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%2Fthrd_join.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 devdocs/c/thread%2Fthrd_join.html (limited to 'devdocs/c/thread%2Fthrd_join.html') diff --git a/devdocs/c/thread%2Fthrd_join.html b/devdocs/c/thread%2Fthrd_join.html new file mode 100644 index 00000000..e4764b63 --- /dev/null +++ b/devdocs/c/thread%2Fthrd_join.html @@ -0,0 +1,25 @@ +

thrd_join

Defined in header <threads.h>
int thrd_join( thrd_t thr, int *res );
+
(since C11)

Blocks the current thread until the thread identified by thr finishes execution.

+

If res is not a null pointer, the result code of the thread is put to the location pointed to by res.

+

The termination of the thread synchronizes-with the completion of this function.

+

The behavior is undefined if the thread was previously detached or joined by another thread.

+

Parameters

+ + +
thr - identifier of the thread to join
res - location to put the result code to

Return value

thrd_success if successful, thrd_error otherwise.

+

References

See also

+ + +
+
(C11)
detaches a thread
(function)
+
(C11)
terminates the calling thread
(function)
C++ documentation for join
+

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

+
-- cgit v1.2.3