Added atomic support

This commit is contained in:
John Wellbelove 2018-04-08 18:09:15 +01:00
parent 4059a8557e
commit fa57304cca
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -29,6 +29,6 @@ SOFTWARE.
#ifndef __ETL_ATOMIC_ARM__
#define __ETL_ATOMIC_ARM__
#include "atomic_gcc_atomic.h"
#include "atomic_gcc_sync.h"
#endif

View File

@ -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;