nn::os::ThreadLocalStorage Classclass ThreadLocalStorage
Class that represents thread-local storage with the same size as the uptr type.
Thread-local storage comprises a fixed number of uptr slots that are reserved by the constructor. In the present implementation, up to 16 slots can be secured at the same time.
Data stored in thread-local storage can be obtained and set using the GetValue and SetValue functions, respectively.
When a thread is created, its entire thread-local storage region is initialized to 0.
ThreadLocalStorage
|
Creates a thread-local storage object and allocates one slot. | |
|---|---|---|
~ThreadLocalStorage
|
Frees the slots of a thread-local storage object and destroys the object. | |
GetValue
|
Gets a value stored in thread-local storage. | |
SetValue
|
Sets a value to store in thread-local storage. |
CONFIDENTIAL