PxTaskSignalEvents_Pxhnd()
Signal events to a task (handler service).
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxError_t PxTaskSignalEvents_Pxhnd (PxTask_t TaskId, PxEvents_t events); - ARGUMENTS
|
|
|
- RETURN VALUES
-
-
PXROS error code
-
- ERROR CODES
-
PXERR_GLOBAL_ILLEGAL_COREthe requested task is not on the same core
PXERR_TASK_ILLTASKTaskIdis not a valid task object - DESCRIPTION
-
PxTaskSignalEvents_Pxhndsignals the events specified in events toTaskId. There they are saved until handled by task.If
TaskIdwaits for any of the events (with aPxAwaitEventscall or a call with the_EvWaitsuffix), the task is readied and the service returns. If some of the task’s aborting events occur (seePxExpectAbort) and task’s abort mechanism is enabled, thePxExpectAbortcall returns prematurely. If the events are signaled to a task on an other core, PXROS will allocate an object for intercore communication to send this request to the other core for execution.PxTaskSignalEvents_Pxhndis the handler service. The handler service can not send events to tasks on other cores because it can not allocate an object for the request intercore communication.Note the
PxTaskSignalEvents_Pxhnd()is functionally identical toPxTaskSignalEvents_Hnd().
- SEE ALSO
- USAGE
-
#include "pxdef.h" #define MY_EVENT 0x1l PxError_t Err = PxTaskSignalEvents_Pxhnd(TaskId, MY_EVENT); if (Err != PXERR_NOERROR) { // Report error }