Typedefs | |
| typedef void(* | NvOsThreadFunction) (void *args) |
| typedef struct NvOsThreadRec * | NvOsThreadHandle |
Functions | |
| void | NvOsThreadYield (void) |
| This function yields the caller thread and let other thread run. More... | |
| NvU64 | NvOsGetCurrentThreadId (void) |
| This function returns the thread id. More... | |
| NvError | NvOsTlsAddTerminator (void(*func)(void *args), void *context) |
| This function registers a function which will be called when thread terminates successfully. More... | |
| NvOsTlsKeyHandle | NvOsTlsAlloc (void) |
| This function creates a thread specific data. More... | |
| NvOsTlsKeyHandle | NvOsTlsAllocWithDestructor (void(*destructor)(void *args)) |
| This function creates a thread specific data, and store function pointer into it, and the function pointer is called when thread is terminated successfully. More... | |
| void | NvOsTlsFree (NvOsTlsKeyHandle TlsIndex) |
| This function free the thread specific data, which is pointed by TlsIndex parameter. More... | |
| void * | NvOsTlsGet (NvOsTlsKeyHandle TlsIndex) |
| This function gets the thread specific data, which is pointed by TlsIndex parameter. More... | |
| NvBool | NvOsTlsRemoveTerminator (void(*func)(void *args), void *context) |
| This function unregisters a function from the list of functions will be called when thread terminates successfully. More... | |
| void | NvOsTlsSet (NvOsTlsKeyHandle TlsIndex, void *value) |
| This function set a thread specific data, which is pointed by TlsIndex parameter. More... | |
| NvError | NvOsThreadCreate (NvOsThreadFunction function, void *args, NvOsThreadHandle *thread) |
| This function creates a thread with entry point and parameter of entry point. All signals are blocked before the thread is created, and all signals are unlocked after the thread is created. More... | |
| NvError | NvOsThreadJoinEx (NvOsThreadHandle t) |
| This function blocks until while the thread is running, after the thread is terminated, this function unblocks. More... | |
| NvError | NvOsThreadSetName (NvOsThreadHandle t, const char *name) |
| This function set thread name. More... | |
Thread entry point
Definition at line 1711 of file nvos_s3_tegra_safety.h.
| typedef struct NvOsThreadRec* NvOsThreadHandle |
Handle for NvOS thread. This is an opaque type and should not be dereferenced.
Definition at line 1716 of file nvos_s3_tegra_safety.h.
| NvU64 NvOsGetCurrentThreadId | ( | void | ) |
This function returns the thread id.
Usage considerations
| NvError NvOsThreadCreate | ( | NvOsThreadFunction | function, |
| void * | args, | ||
| NvOsThreadHandle * | thread | ||
| ) |
This function creates a thread with entry point and parameter of entry point. All signals are blocked before the thread is created, and all signals are unlocked after the thread is created.
| [in] | function | The entry point of thread |
| [in] | args | Give as a parameter of function parameter |
| [out] | thread | NvOS thread handle |
Usage considerations
| NvError NvOsThreadJoinEx | ( | NvOsThreadHandle | t | ) |
This function blocks until while the thread is running, after the thread is terminated, this function unblocks.
| [in] | t | NvOS thread handle |
Usage considerations
| NvError NvOsThreadSetName | ( | NvOsThreadHandle | t, |
| const char * | name | ||
| ) |
This function set thread name.
| [in] | t | NvOS thread handle |
| [in] | name | String pointer to set as thread name. Maimum length is _NTO_THREAD_NAME_MAX. When name is NULL,this API deletes any name already assigend to the thread. |
Usage considerations
This function yields the caller thread and let other thread run.
Usage considerations
This function registers a function which will be called when thread terminates successfully.
| [in] | func | Function pointer |
| [in] | context | Parameter when func parameter is called |
Usage considerations
| NvOsTlsKeyHandle NvOsTlsAlloc | ( | void | ) |
This function creates a thread specific data.
Usage considerations
| NvOsTlsKeyHandle NvOsTlsAllocWithDestructor | ( | void(*)(void *args) | destructor | ) |
This function creates a thread specific data, and store function pointer into it, and the function pointer is called when thread is terminated successfully.
| [in] | destructor | Function pointer to store into thread specific data |
Usage considerations
| void NvOsTlsFree | ( | NvOsTlsKeyHandle | TlsIndex | ) |
This function free the thread specific data, which is pointed by TlsIndex parameter.
| [in] | TlsIndex | Handle of thread specific data |
Usage considerations
| void* NvOsTlsGet | ( | NvOsTlsKeyHandle | TlsIndex | ) |
This function gets the thread specific data, which is pointed by TlsIndex parameter.
| [in] | TlsIndex | Handle of the thread specific data |
Usage considerations
This function unregisters a function from the list of functions will be called when thread terminates successfully.
| [in] | func | Function pointer to unregister |
| [in] | context | Parameter when func parameter is called |
Usage considerations
| void NvOsTlsSet | ( | NvOsTlsKeyHandle | TlsIndex, |
| void * | value | ||
| ) |
This function set a thread specific data, which is pointed by TlsIndex parameter.
| [in] | TlsIndex | Handle of thread specific data |
| [in] | value | Pointer to store |
Usage considerations