Changeset 18bbfc7 in rtems


Ignore:
Timestamp:
Dec 5, 2021, 3:37:33 PM (6 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5
Children:
ff3f3490
Parents:
5382f61
git-author:
Sebastian Huber <sebastian.huber@…> (12/05/21 15:37:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/07/21 11:31:12)
Message:

score: Fix atomic stores for C++

Close #4567.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/cpustdatomic.h

    r5382f61 r18bbfc7  
    295295{
    296296#if defined(_RTEMS_SCORE_CPUSTDATOMIC_USE_ATOMIC)
    297   obj->store( desired );
     297  obj->store( desired, order );
    298298#elif defined(_RTEMS_SCORE_CPUSTDATOMIC_USE_STDATOMIC)
    299299  atomic_store_explicit( obj, desired, order );
     
    315315{
    316316#if defined(_RTEMS_SCORE_CPUSTDATOMIC_USE_ATOMIC)
    317   obj->store( desired );
     317  obj->store( desired, order );
    318318#elif defined(_RTEMS_SCORE_CPUSTDATOMIC_USE_STDATOMIC)
    319319  atomic_store_explicit( obj, desired, order );
     
    335335{
    336336#if defined(_RTEMS_SCORE_CPUSTDATOMIC_USE_ATOMIC)
    337   obj->store( desired );
     337  obj->store( desired, order );
    338338#elif defined(_RTEMS_SCORE_CPUSTDATOMIC_USE_STDATOMIC)
    339339  atomic_store_explicit( obj, desired, order );
Note: See TracChangeset for help on using the changeset viewer.