Directives provided are:
More...
Directives provided are:
- establish an asynchronous signal routine
- send a signal set to a task
◆ rtems_signal_catch()
RTEMS Catch Signal.
This routine implements the rtems_signal_catch directive. This directive is used to establish asr_handler as the Asynchronous Signal Routine (RTEMS_ASR) for the calling task. The asr_handler will execute with a mode of mode_set.
- Parameters
-
[in] | asr_handler | is the address of asynchronous signal routine (asr) ( NULL indicates asr is invalid ) |
[in] | mode_set | is the mode value for asr |
- Return values
-
References _ASR_Initialize(), _ASR_Is_null_handler(), _Thread_Disable_dispatch(), _Thread_Enable_dispatch(), _Thread_Get_executing(), Thread_Control::API_Extensions, ASR_Information::handler, ASR_Information::mode_set, RTEMS_SUCCESSFUL, RTEMS_API_Control::Signal, and THREAD_API_RTEMS.
◆ rtems_signal_send()
RTEMS Send Signal.
This routine implements the rtems_signal_send directive. This directive sends the signal_set to the task specified by ID.
- Parameters
-
[in] | id | is the thread thread id |
[in] | signal_set | is the signal set |
- Return values
-
RTEMS_SUCCESSFUL | if successful or error code if unsuccessful |
References _Thread_Get(), and RTEMS_INVALID_NUMBER.