mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 03:37:34 +08:00
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.
This commit is contained in:
@@ -81,10 +81,10 @@ static void signal_send(test_context *ctx, test_state new_state)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
|
||||
change_state(ctx, new_state);
|
||||
sc = rtems_signal_send(ctx->consumer, TEST_SIGNAL);
|
||||
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
|
||||
|
||||
change_state(ctx, new_state);
|
||||
}
|
||||
|
||||
static void check_consumer_processor(const test_context *ctx)
|
||||
|
||||
Reference in New Issue
Block a user