module ti.sysbios.rts.ti.ThreadLocalStorage |
|
Thread-local RTS data support module
The ThreadLocalStorage module allows SYS/BIOS Tasks to maintain
RTS data that is private to each Task. RTS data includes, among
other things, the errno variable from the RTS library and the C++
exception stack.
[
more ... ]
#include <ti/sysbios/rts/ti/ThreadLocalStorage.h>
Functions common to all target modules |
|
|
Constants |
extern const Bool | |
| |
extern const String | |
extern const String | |
DETAILS
The ThreadLocalStorage module allows SYS/BIOS Tasks to maintain
RTS data that is private to each Task. RTS data includes, among
other things, the errno variable from the RTS library and the C++
exception stack.
This support is achieved by way of per-Task "TLS" data areas and
a Task switch hook function that tracks the current Task's TLS
data area on behalf of the RTS library code.
Currently requires use of the --multithreaded option for the CG tools
compiler.
config ThreadLocalStorage_TItlsSectMemory // module-wide |
|
Memory section in which to place .TI.tls output data section
extern const String ThreadLocalStorage_TItlsSectMemory;
config ThreadLocalStorage_TItls_initSectMemory // module-wide |
|
Memory section in which to place .TI.tls_init output data section
extern const String ThreadLocalStorage_TItls_initSectMemory;
config ThreadLocalStorage_enableTLSSupport // module-wide |
|
Enable TI TLS support
extern const Bool ThreadLocalStorage_enableTLSSupport;
config ThreadLocalStorage_heapHandle // module-wide |
|
Heap to use for TLS allocation. If null, uses the default Heap
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool ThreadLocalStorage_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool ThreadLocalStorage_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 ThreadLocalStorage_Module_getMask();
// Returns the diagnostics mask for this module
Void ThreadLocalStorage_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
var ThreadLocalStorage = xdc.useModule('ti.sysbios.rts.ti.ThreadLocalStorage');
module-wide config parameters
generated on Tue, 14 Feb 2017 19:59:46 GMT