Changeset 7e4938c in rtems


Ignore:
Timestamp:
Oct 6, 1997, 9:28:40 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b6770d1
Parents:
d14418b
Message:

Make Post an atomic operation.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/inline/eventset.inl

    rd14418b r7e4938c  
    4949)
    5050{
    51    *the_event_set |= the_new_events;
     51  ISR_Level level;
     52
     53  _ISR_Disable( level );
     54    *the_event_set |= the_new_events;
     55  _ISR_Enable( level );
    5256}
    5357
  • c/src/exec/rtems/inline/rtems/rtems/eventset.inl

    rd14418b r7e4938c  
    4949)
    5050{
    51    *the_event_set |= the_new_events;
     51  ISR_Level level;
     52
     53  _ISR_Disable( level );
     54    *the_event_set |= the_new_events;
     55  _ISR_Enable( level );
    5256}
    5357
  • c/src/exec/rtems/macros/eventset.inl

    rd14418b r7e4938c  
    3232
    3333#define _Event_sets_Post( _the_new_events, _the_event_set ) \
    34    *(_the_event_set) |= (_the_new_events)
     34   do { \
     35     ISR_Level level; \
     36     \
     37     _ISR_Disable( level ); \
     38       *(_the_event_set) |= (_the_new_events); \
     39     _ISR_Enable( level ); \
     40   } while (0);
    3541
    3642/*PAGE
  • c/src/exec/rtems/macros/rtems/rtems/eventset.inl

    rd14418b r7e4938c  
    3232
    3333#define _Event_sets_Post( _the_new_events, _the_event_set ) \
    34    *(_the_event_set) |= (_the_new_events)
     34   do { \
     35     ISR_Level level; \
     36     \
     37     _ISR_Disable( level ); \
     38       *(_the_event_set) |= (_the_new_events); \
     39     _ISR_Enable( level ); \
     40   } while (0);
    3541
    3642/*PAGE
  • cpukit/rtems/inline/rtems/rtems/eventset.inl

    rd14418b r7e4938c  
    4949)
    5050{
    51    *the_event_set |= the_new_events;
     51  ISR_Level level;
     52
     53  _ISR_Disable( level );
     54    *the_event_set |= the_new_events;
     55  _ISR_Enable( level );
    5256}
    5357
  • cpukit/rtems/macros/rtems/rtems/eventset.inl

    rd14418b r7e4938c  
    3232
    3333#define _Event_sets_Post( _the_new_events, _the_event_set ) \
    34    *(_the_event_set) |= (_the_new_events)
     34   do { \
     35     ISR_Level level; \
     36     \
     37     _ISR_Disable( level ); \
     38       *(_the_event_set) |= (_the_new_events); \
     39     _ISR_Enable( level ); \
     40   } while (0);
    3541
    3642/*PAGE
Note: See TracChangeset for help on using the changeset viewer.