Kore 3
Loading...
Searching...
No Matches
threadlocal.h
Go to the documentation of this file.
1#ifndef KORE_THREAD_THREADLOCAL_HEADER
2#define KORE_THREAD_THREADLOCAL_HEADER
3
4#include <kore3/global.h>
5
6#include <kore3/backend/threadlocal.h>
7
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct kore_thread_local {
17 kore_thread_local_impl impl;
19
25
31
37
43KORE_FUNC void kore_thread_local_set(kore_thread_local *local, void *data);
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Definition threadlocal.h:16
KORE_FUNC void * kore_thread_local_get(kore_thread_local *local)
Gets the data in the storage-slot.
KORE_FUNC void kore_thread_local_init(kore_thread_local *local)
Initializes a thread-specific storage-slot.
KORE_FUNC void kore_thread_local_destroy(kore_thread_local *local)
Destroys a storage-slot.
KORE_FUNC void kore_thread_local_set(kore_thread_local *local, void *data)
Sets the data in the storage-slot.