From: khizmax Date: Sun, 19 Mar 2017 20:07:36 +0000 (+0300) Subject: Fixed GCC 4.8 incompatibility X-Git-Tag: v2.3.0~90 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=19f29cb9c4b8fae61dcf6f73b16e801690c92d7f;p=libcds.git Fixed GCC 4.8 incompatibility --- diff --git a/cds/urcu/dispose_thread.h b/cds/urcu/dispose_thread.h index d97e37dd..a83376ba 100644 --- a/cds/urcu/dispose_thread.h +++ b/cds/urcu/dispose_thread.h @@ -82,7 +82,7 @@ namespace cds { namespace urcu { condvar_type m_cvDataReady; // Task for thread (dispose cycle) - atomics::atomic m_pBuffer{ nullptr }; + atomics::atomic m_pBuffer; uint64_t m_nCurEpoch = 0; // Quit flag @@ -145,6 +145,12 @@ namespace cds { namespace urcu { //@endcond public: // methods called from any thread + //@cond + dispose_thread() + : m_pBuffer( nullptr ) + {} + //@endcond + /// Start reclamation thread /** This function is called by \ref general_threaded object to start