Changeset 0b422d56 in rtems


Ignore:
Timestamp:
Jan 2, 2013, 5:56:36 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
1794f33
Parents:
57f125d
git-author:
Sebastian Huber <sebastian.huber@…> (01/02/13 17:56:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/07/13 14:13:57)
Message:

rtems: Simplify _Event_Surrender()

It is impossible to reach the simplified expression if we are in the
THREAD_BLOCKING_OPERATION_TIMEOUT state since in this case Wait.count
(event condition) would be set to zero and thus the seized event set
would be empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/eventsurrender.c

    r57f125d r0b422d56  
    6363  if ( _ISR_Is_in_progress() &&
    6464       _Thread_Is_executing( the_thread ) &&
    65        ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
    66         (*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
     65       *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
    6766    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
    6867      event->pending_events = _Event_sets_Clear(
Note: See TracChangeset for help on using the changeset viewer.