Changeset 4c19e59b in rtems


Ignore:
Timestamp:
Jun 8, 2016, 8:01:44 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ec5d7f92
Parents:
cc8bb9e3
Message:

smptests/smpatomic01: Fix seqlock write

File:
1 edited

Legend:

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

    rcc8bb9e3 r4c19e59b  
    649649      seq = _Atomic_Load_ulong(&ctx->atomic_value, ATOMIC_ORDER_RELAXED);
    650650      _Atomic_Store_ulong(&ctx->atomic_value, seq + 1, ATOMIC_ORDER_RELAXED);
    651       _Atomic_Fence(ATOMIC_ORDER_ACQUIRE);
     651
     652      /* There is no atomic store with acquire/release semantics */
     653      _Atomic_Fence(ATOMIC_ORDER_ACQ_REL);
    652654
    653655      ++counter;
Note: See TracChangeset for help on using the changeset viewer.