Changeset 0432dff7 in rtems


Ignore:
Timestamp:
Aug 19, 2013, 3:36:28 PM (6 years ago)
Author:
WeiY <wei.a.yang@…>
Branches:
4.11, master
Children:
518d82b
Parents:
99b3505
git-author:
WeiY <wei.a.yang@…> (08/19/13 15:36:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/20/13 08:42:43)
Message:

add compare_and_swap check in check-atomic.m4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/aclocal/check-atomic.m4

    r99b3505 r0432dff7  
    88    AC_LINK_IFELSE(
    99      [AC_LANG_PROGRAM([[#include <stdatomic.h>]],
    10         [[atomic_uint_fast32_t t; atomic_init(&t, 0);
     10        [[atomic_uint_fast32_t t; uint_fast32_t m = 1;
     11          atomic_init(&t, 0);
    1112          atomic_store( &t, 1 );
    1213          atomic_exchange( &t, 2 );
     14          atomic_compare_exchange_strong( &t, &m, 2);
    1315          atomic_fetch_add( &t, 3 );]])],
    1416        [rtems_cv_ATOMIC="yes"],
Note: See TracChangeset for help on using the changeset viewer.