mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Added atomic support
This commit is contained in:
parent
4059a8557e
commit
fa57304cca
@ -31,7 +31,7 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_STD_ATOMIC_SUPPORTED == 1
|
||||
#if ETL_CPP11_SUPPORTED == 1
|
||||
#include "atomic/atomic_std.h"
|
||||
#define ETL_HAS_ATOMIC 1
|
||||
#elif defined(ETL_COMPILER_ARM)
|
||||
|
||||
@ -29,6 +29,6 @@ SOFTWARE.
|
||||
#ifndef __ETL_ATOMIC_ARM__
|
||||
#define __ETL_ATOMIC_ARM__
|
||||
|
||||
#include "atomic_gcc_atomic.h"
|
||||
#include "atomic_gcc_sync.h"
|
||||
|
||||
#endif
|
||||
|
||||
@ -429,7 +429,7 @@ namespace etl
|
||||
atomic& operator =(const atomic&);
|
||||
atomic& operator =(const atomic&) volatile;
|
||||
|
||||
T value;
|
||||
volatile T value;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
@ -736,7 +736,7 @@ namespace etl
|
||||
atomic& operator =(const atomic&);
|
||||
atomic& operator =(const atomic&) volatile;
|
||||
|
||||
T* value;
|
||||
volatile T* value;
|
||||
};
|
||||
|
||||
typedef etl::atomic<char> atomic_char;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user