Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
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
19
extern
"C"
{
20
#endif
21
25
typedef
struct
osdep_utls_stats_s
{
29
bool
is_initialized
;
33
size_t
slots_used
;
38
size_t
slots_allocated
;
39
}
osdep_utls_stats_t
;
40
49
extern
void
osdep_utls_cinit
(
void
);
50
58
extern
void
osdep_utls_cfini
(
void
);
59
66
extern
void
*
osdep_utls_peek
(
const
bxc_thread_t
*thr);
67
73
extern
void
osdep_utls_get_stats
(
osdep_utls_stats_t
*stats);
74
#ifdef __cplusplus
75
}
// extern "C"
76
#endif
77
78
#endif
// __OSDEP_UTLS_H__
threading.h
Native threading API.
bxc_thread_t
struct bxc_thread_s bxc_thread_t
Thread descriptor type.
Definition
threading.h:162
osdep_utls_stats_s
Statistics of TLS allocation.
Definition
utls.h:25
osdep_utls_stats_s::slots_used
size_t slots_used
Number of slots used. Only valid when osdep_utls_stats_s::is_initialized is true.
Definition
utls.h:33
osdep_utls_stats_s::is_initialized
bool is_initialized
If true, TLS container is initialized.
Definition
utls.h:29
osdep_utls_stats_s::slots_allocated
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
osdep_utls_cfini
void osdep_utls_cfini(void)
Manually destroy the UTLS container.
osdep_utls_get_stats
void osdep_utls_get_stats(osdep_utls_stats_t *stats)
Get statistics of TLS allocation.
osdep_utls_peek
void * osdep_utls_peek(const bxc_thread_t *thr)
Get the TLS space by thread descriptor pointer.
osdep_utls_cinit
void osdep_utls_cinit(void)
Manually initialize UTLS container.
osdep_utls_stats_t
struct osdep_utls_stats_s osdep_utls_stats_t
Statistics of TLS allocation.
include
osdep
utls.h
Generated by
1.18.0