From: Arnaud Giersch Date: Mon, 30 Apr 2018 11:32:25 +0000 (+0200) Subject: Kill atomic_compat.h. X-Git-Tag: sg_v3_7_1~1 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/cf0d125a496f82b6831925b514bc5b40717ee9ca?ds=inline Kill atomic_compat.h. --- diff --git a/README b/README index 7368386..a19a319 100644 --- a/README +++ b/README @@ -180,8 +180,6 @@ Liste de fichiers * fichiers sources - atomic_compat.h chargement des la classe std::atomic - communicator.h la couche de communication communicator.cpp diff --git a/atomic_compat.h b/atomic_compat.h deleted file mode 100644 index 1fec370..0000000 --- a/atomic_compat.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef ATOMIC_COMPAT_H -#define ATOMIC_COMPAT_H - -#if __GNUC__ == 4 && __GNUC_MINOR__ == 4 -# include // is named in gcc 4.4 - -template // fix missing definition in gcc 4.4 -void -atomic<_Tp*>::store(_Tp* __v, memory_order __m) volatile -{ atomic_address::store(__v, __m); } - -#else -# include -#endif - -#endif // !ATOMIC_COMPAT_H - -// Local variables: -// mode: c++ -// End: diff --git a/process.h b/process.h index 25d6c44..81e68d9 100644 --- a/process.h +++ b/process.h @@ -5,6 +5,7 @@ //#undef USE_UNORDERED_MAP #include +#include #include #ifdef USE_UNORDERED_MAP # include @@ -16,7 +17,6 @@ #include #include #include -#include "atomic_compat.h" #include "communicator.h" #include "misc.h" #include "msg_thread.h" diff --git a/sync_queue.h b/sync_queue.h index fc35339..d400578 100644 --- a/sync_queue.h +++ b/sync_queue.h @@ -1,7 +1,7 @@ #ifndef SYNC_QUEUE_H #define SYNC_QUEUE_H -#include "atomic_compat.h" +#include #define SYNC_QUEUE_BUFSIZE 16