Changeset 6369daf in rtems


Ignore:
Timestamp:
May 31, 2020, 2:22:58 PM (9 months ago)
Author:
Jan Sommer <jan.sommer@…>
Branches:
5, master
Children:
96d9823
Parents:
208cd6b
git-author:
Jan Sommer <jan.sommer@…> (05/31/20 14:22:58)
git-committer:
Chris Johns <chrisj@…> (06/11/20 03:29:35)
Message:

smpsignal01: Change state before sending the signal

The signal handler of the consumer might start executing
before rtems_signal_send of the producer returns.
Therefore change the state to SIG_1_SENT before sending the signal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpsignal01/init.c

    r208cd6b r6369daf  
    8282  rtems_status_code sc;
    8383
     84  change_state(ctx, new_state);
    8485  sc = rtems_signal_send(ctx->consumer, TEST_SIGNAL);
    8586  rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    8687
    87   change_state(ctx, new_state);
    8888}
    8989
Note: See TracChangeset for help on using the changeset viewer.