Kore
Loading...
Searching...
No Matches
threadlocal.h
Go to the documentation of this file.
1#pragma once
2
3#include <kinc/global.h>
4
5#include <kinc/backend/threadlocal.h>
6
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct kinc_thread_local {
16 kinc_thread_local_impl_t impl;
17} kinc_thread_local_t;
18
23KINC_FUNC void kinc_thread_local_init(kinc_thread_local_t *local);
24
29KINC_FUNC void kinc_thread_local_destroy(kinc_thread_local_t *local);
30
35KINC_FUNC void *kinc_thread_local_get(kinc_thread_local_t *local);
36
42KINC_FUNC void kinc_thread_local_set(kinc_thread_local_t *local, void *data);
43
44#ifdef __cplusplus
45}
46#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Definition threadlocal.h:15
KINC_FUNC void kinc_thread_local_set(kinc_thread_local_t *local, void *data)
Sets the data in the storage-slot.
KINC_FUNC void kinc_thread_local_destroy(kinc_thread_local_t *local)
Destroys a storage-slot.
KINC_FUNC void * kinc_thread_local_get(kinc_thread_local_t *local)
Gets the data in the storage-slot.
KINC_FUNC void kinc_thread_local_init(kinc_thread_local_t *local)
Initializes a thread-specific storage-slot.