diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-10-06 21:28:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-10-06 21:28:40 +0000 |
commit | 7e4938ca42472510631c10b53502d84f81262d1a (patch) | |
tree | 075bab9af2571cebd1228e4a1cb3caeeaae5a597 /c/src/exec/rtems/inline | |
parent | Added _Thread_Enable_dispatch to already_timedout path on Wait_support. (diff) | |
download | rtems-7e4938ca42472510631c10b53502d84f81262d1a.tar.bz2 |
Make Post an atomic operation.
Diffstat (limited to 'c/src/exec/rtems/inline')
-rw-r--r-- | c/src/exec/rtems/inline/eventset.inl | 6 | ||||
-rw-r--r-- | c/src/exec/rtems/inline/rtems/rtems/eventset.inl | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/c/src/exec/rtems/inline/eventset.inl b/c/src/exec/rtems/inline/eventset.inl index a32190888b..375b15c65c 100644 --- a/c/src/exec/rtems/inline/eventset.inl +++ b/c/src/exec/rtems/inline/eventset.inl @@ -48,7 +48,11 @@ RTEMS_INLINE_ROUTINE void _Event_sets_Post( rtems_event_set *the_event_set ) { - *the_event_set |= the_new_events; + ISR_Level level; + + _ISR_Disable( level ); + *the_event_set |= the_new_events; + _ISR_Enable( level ); } /*PAGE diff --git a/c/src/exec/rtems/inline/rtems/rtems/eventset.inl b/c/src/exec/rtems/inline/rtems/rtems/eventset.inl index a32190888b..375b15c65c 100644 --- a/c/src/exec/rtems/inline/rtems/rtems/eventset.inl +++ b/c/src/exec/rtems/inline/rtems/rtems/eventset.inl @@ -48,7 +48,11 @@ RTEMS_INLINE_ROUTINE void _Event_sets_Post( rtems_event_set *the_event_set ) { - *the_event_set |= the_new_events; + ISR_Level level; + + _ISR_Disable( level ); + *the_event_set |= the_new_events; + _ISR_Enable( level ); } /*PAGE |