|
Muteki
EABI code execution on Besta® RTOS devices.
|
Userspace TLS (UTLS) control. More...
#include <muteki/threading.h>Go to the source code of this file.
Data Structures | |
| struct | osdep_utls_stats_s |
| Statistics of TLS allocation. More... | |
Typedefs | |
| typedef struct osdep_utls_stats_s | osdep_utls_stats_t |
| Statistics of TLS allocation. | |
Functions | |
| void | osdep_utls_cinit (void) |
| Manually initialize UTLS container. | |
| void | osdep_utls_cfini (void) |
| Manually destroy the UTLS container. | |
| void * | osdep_utls_peek (const bxc_thread_t *thr) |
| Get the TLS space by thread descriptor pointer. | |
| void | osdep_utls_get_stats (osdep_utls_stats_t *stats) |
| Get statistics of TLS allocation. | |
Userspace TLS (UTLS) control.
A hash-table-backed TLS storage emulator local to the current module. Include this header to control the lifecycle of UTLS.
|
extern |
Manually destroy the UTLS container.
Call this from the destructor code on module unload when not stay resident.
|
extern |
Manually initialize UTLS container.
This is normally not needed as the __aeabi_read_tp() implementation will automatically call this on first use of any TLS space.
|
extern |
Get statistics of TLS allocation.
| stats | The output stats buffer. |
|
extern |
Get the TLS space by thread descriptor pointer.
| thr | Thread pointer. |