From 0edf263139088e8ac0ff1f0d52513f6fc85677d2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 26 Oct 2012 10:05:07 +0200 Subject: rtems: Add system events System events are similar to normal events. They offer a second set of events. These events are intended for internal RTEMS use and should not be used by applications (with the exception of the transient system event). --- cpukit/score/inline/rtems/score/states.inl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cpukit/score/inline/rtems/score') diff --git a/cpukit/score/inline/rtems/score/states.inl b/cpukit/score/inline/rtems/score/states.inl index 7bad0c9f12..f5d816a8d3 100644 --- a/cpukit/score/inline/rtems/score/states.inl +++ b/cpukit/score/inline/rtems/score/states.inl @@ -212,6 +212,21 @@ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( return (the_states & STATES_WAITING_FOR_EVENT); } +/** + * This function returns true if the WAITING_FOR_SYSTEM_EVENT state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_system_event ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_SYSTEM_EVENT); +} + /** * This function returns true if the WAITING_FOR_MUTEX state * is set in the_states, and false otherwise. -- cgit v1.2.3