Go to the source code of this file.
|
typedef void * | ptrFct(void *pCtx) |
| Implementation of SOPC threads in scope of ZEPHYR OS.
|
|
◆ ptrFct
typedef void * ptrFct(void *pCtx) |
Implementation of SOPC threads in scope of ZEPHYR OS.
◆ P_THREAD_Create()
SOPC_Thread P_THREAD_Create |
( |
ptrFct * | callback, |
|
|
void * | pCtx, |
|
|
const char * | taskName, |
|
|
const int | priority ) |
Create an handle of a thread and initialize it.
- Parameters
-
callback | The new thread entry point |
pCtx | Any user-defined context parameter. This will be passed to "callback" call. |
taskName | A task name. Caller should ensure uniqueness of names. Possibly can be NULL. |
priority | The ZEPHYR priority of the new thread. |
◆ P_THREAD_Destroy()
Join and destroy a thread.
- Parameters
-
ppHandle | A pointer to a tThreadHandle* object, previously returned by P_THREAD_Create |
- Returns
- true in case of success. Otherwise, the thread is not guaranteed to be terminated