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

tss_get

Defined in header <threads.h>
void *tss_get( tss_t tss_key );
+
(since C11)

Returns the value held in thread-specific storage for the current thread identified by tss_key. Different threads may get different values identified by the same key.

+

On thread startup (see thrd_create), the values associated with all TSS keys are NULL. Different value may be placed in the thread-specific storage with tss_set.

+

Parameters

+ +
tss_key - thread-specific storage key, obtained from tss_create and not deleted by tss_delete

Return value

The value on success, NULL on failure.

+

Notes

The POSIX equivalent for this function is pthread_getspecific.

+

Example

References

See also

+
+
(C11)
write to thread-specific storage
(function)
+

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

+
-- cgit v1.2.3