Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
utls.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
12
13#ifndef __OSDEP_UTLS_H__
14#define __OSDEP_UTLS_H__
15
16#include <muteki/threading.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
40
49extern void osdep_utls_cinit(void);
50
58extern void osdep_utls_cfini(void);
59
66extern void *osdep_utls_peek(const bxc_thread_t *thr);
67
74#ifdef __cplusplus
75} // extern "C"
76#endif
77
78#endif // __OSDEP_UTLS_H__
Native threading API.
struct bxc_thread_s bxc_thread_t
Thread descriptor type.
Definition threading.h:162
Statistics of TLS allocation.
Definition utls.h:25
size_t slots_used
Number of slots used. Only valid when osdep_utls_stats_s::is_initialized is true.
Definition utls.h:33
bool is_initialized
If true, TLS container is initialized.
Definition utls.h:29
size_t slots_allocated
Number of slots already allocated for the container. Only valid when osdep_utls_stats_s::is_initializ...
Definition utls.h:38
void osdep_utls_cfini(void)
Manually destroy the UTLS container.
void osdep_utls_get_stats(osdep_utls_stats_t *stats)
Get statistics of TLS allocation.
void * osdep_utls_peek(const bxc_thread_t *thr)
Get the TLS space by thread descriptor pointer.
void osdep_utls_cinit(void)
Manually initialize UTLS container.
struct osdep_utls_stats_s osdep_utls_stats_t
Statistics of TLS allocation.