...
Files
os.h/os_tls.c
Prototype
Code Block |
---|
OS_TLS_ID OS_TLS_GetID (OS_ERR *p_err) |
Arguments
p_err
is a pointer to a variable that contains an error code returned by this function. Possible values are:
...
Notes/Warnings
None
Example Usage
Code Block | ||
---|---|---|
| ||
OS_TLS_ID MyTLS_ID;
void main (void)
{
OS_ERR err;
:
OSInit(&err);
:
:
MyTLS_ID = OS_TLS_GetID(&err); /* Obtain the next available TLS ID */
/* Check "err" */
:
:
} |