Format
#include <builtin.h> unsigned long _getTIBvalue(const unsigned int offset);
Language Level: Extension
_getTIBvalue retrieves an unsigned long value from
the thread information block (TIB) at the offset
specified. The selector value for the TIB belonging to the
current thread of execution is stored in the FS segment register.
You should use the offsetof macro to calculate offset.
Note: _getTIBvalue is a built-in function, which means it is implemented as an inline instruction and has no backing code in the library. For this reason:
Return Value
_getTIBvalue returns an unsigned long
value from the TIB. There is no error return value and
_getTIBvalue does not set errno. If offset is
too large, it will cause an access violation when running the
program.
![]()
_threadstore
-- Access Thread-Specific Storage
![]()
<builtin.h>