From: khizmax Date: Fri, 19 Sep 2014 08:25:58 +0000 (+0400) Subject: Remove cds/details/std/tnhread.h, using STL instead X-Git-Tag: v2.0.0~334 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0daa902df9e43c59968b37d896d095c21efaaf1c;p=libcds.git Remove cds/details/std/tnhread.h, using STL instead --- diff --git a/cds/algo/backoff_strategy.h b/cds/algo/backoff_strategy.h index 24852bba..fd02f659 100644 --- a/cds/algo/backoff_strategy.h +++ b/cds/algo/backoff_strategy.h @@ -16,8 +16,8 @@ 2009.09.10 Maxim Khiszinsky reset() function added */ +#include #include -#include #include namespace cds { @@ -74,8 +74,7 @@ namespace cds { //@cond void operator ()() { - cds_std::this_thread::yield(); - //OS::yield(); + std::this_thread::yield(); } template @@ -368,7 +367,7 @@ namespace cds { //@cond void operator()() const { - cds_std::this_thread::sleep_for( duration_type( m_nTimeout )); + std::this_thread::sleep_for( duration_type( m_nTimeout )); } template @@ -377,7 +376,7 @@ namespace cds { for ( unsigned int i = 0; i < m_nTimeout; i += 2 ) { if ( pr() ) return true; - cds_std::this_thread::sleep_for( duration_type( 2 )); + std::this_thread::sleep_for( duration_type( 2 )); } return false; } diff --git a/cds/details/std/thread.h b/cds/details/std/thread.h deleted file mode 100644 index ff7af37a..00000000 --- a/cds/details/std/thread.h +++ /dev/null @@ -1,26 +0,0 @@ -//$$CDS-header$$ - -#ifndef __CDS_DETAILS_STD_THREAD_H -#define __CDS_DETAILS_STD_THREAD_H - -//@cond - -#include - -#ifdef CDS_CXX11_STDLIB_THREAD -# include - namespace cds_std { - using std::thread; - namespace this_thread = std::this_thread; - } -#else -# include - namespace cds_std { - using boost::thread; - namespace this_thread = boost::this_thread; - } -#endif - -//@endcond - -#endif // #ifndef __CDS_DETAILS_STD_THREAD_H diff --git a/cds/urcu/dispose_thread.h b/cds/urcu/dispose_thread.h index acad1b44..9ebb4bd5 100644 --- a/cds/urcu/dispose_thread.h +++ b/cds/urcu/dispose_thread.h @@ -4,7 +4,7 @@ #define _CDS_URCU_DISPOSE_THREAD_H #include -#include +#include #include #include #include @@ -26,9 +26,9 @@ namespace cds { namespace urcu { typedef Buffer buffer_type ; ///< Buffer type private: //@cond - typedef cds_std::thread thread_type; - typedef cds_std::mutex mutex_type; - typedef cds_std::condition_variable condvar_type; + typedef std::thread thread_type; + typedef cds_std::mutex mutex_type; + typedef cds_std::condition_variable condvar_type; typedef cds_std::unique_lock< mutex_type > unique_lock; class dispose_thread_starter: public thread_type diff --git a/projects/Win/vc12/cds.vcxproj b/projects/Win/vc12/cds.vcxproj index 9a283b87..0d665996 100644 --- a/projects/Win/vc12/cds.vcxproj +++ b/projects/Win/vc12/cds.vcxproj @@ -730,9 +730,7 @@ - - diff --git a/projects/Win/vc12/cds.vcxproj.filters b/projects/Win/vc12/cds.vcxproj.filters index 4346d06a..5d3b6268 100644 --- a/projects/Win/vc12/cds.vcxproj.filters +++ b/projects/Win/vc12/cds.vcxproj.filters @@ -878,9 +878,6 @@ Header Files\cds\intrusive - - Header Files\cds\details\std - Header Files\cds\intrusive @@ -1064,9 +1061,6 @@ Header Files\cds\details\std - - Header Files\cds\details\std - Header Files\cds\details\std