@@ -76,10 +76,10 @@ namespace
7676
7777 CHECK_EQUAL (compare.is_lock_free (), test.is_lock_free ());
7878
79- // #if ETL_NOT_USING_STL && ETL_HAS_ATOMIC
80- // CHECK_TRUE(etl::atomic<int>::is_always_lock_free);
81- // CHECK_TRUE(test.is_always_lock_free);
82- // #endif
79+ #if ETL_HAS_ATOMIC_ALWAYS_LOCK_FREE
80+ CHECK_TRUE (etl::atomic<int >::is_always_lock_free);
81+ CHECK_TRUE (test.is_always_lock_free );
82+ #endif
8383 }
8484
8585 // *************************************************************************
@@ -90,28 +90,28 @@ namespace
9090
9191 CHECK_EQUAL (compare.is_lock_free (), test.is_lock_free ());
9292
93- #if ETL_NOT_USING_STL && ETL_HAS_ATOMIC
93+ #if ETL_HAS_ATOMIC_ALWAYS_LOCK_FREE
9494 CHECK_TRUE (etl::atomic<int *>::is_always_lock_free);
9595 CHECK_TRUE (test.is_always_lock_free );
9696#endif
9797 }
9898
99- // #if ETL_NOT_USING_STL && ETL_HAS_ATOMIC
100- // //*************************************************************************
101- // TEST(test_atomic_is_always_lock_free)
102- // {
103- // struct S
104- // {
105- // int a;
106- // int b;
107- // int c;
108- // };
109- //
110- // CHECK_TRUE(etl::atomic<int>::is_always_lock_free);
111- // CHECK_TRUE(etl::atomic<int*>::is_always_lock_free);
112- // CHECK_FALSE(etl::atomic<S>::is_always_lock_free);
113- // }
114- // #endif
99+ #if ETL_HAS_ATOMIC_ALWAYS_LOCK_FREE
100+ // *************************************************************************
101+ TEST (test_atomic_is_always_lock_free)
102+ {
103+ struct S
104+ {
105+ int a;
106+ int b;
107+ int c;
108+ };
109+
110+ CHECK_TRUE (etl::atomic<int >::is_always_lock_free);
111+ CHECK_TRUE (etl::atomic<int *>::is_always_lock_free);
112+ CHECK_FALSE (etl::atomic<S>::is_always_lock_free);
113+ }
114+ #endif
115115
116116 // *************************************************************************
117117 TEST (test_atomic_integer_load)
0 commit comments