mirror of
https://github.com/boostorg/thread.git
synced 2026-02-20 15:12:11 +00:00
Thread: merge from trunk 1.54. Fix #8027,#8323,#8337.
[SVN r83660]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
// thread::id this_thread::get_id();
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
// thread::id this_thread::get_id();
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <cstdlib>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
// thread::id this_thread::get_id();
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <cstdlib>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
// thread& operator=(thread&& t);
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#define BOOST_THREAD_PROVIDES_THREAD_MOVE_ASSIGN_CALLS_TERMINATE_IF_JOINABLE
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
unsigned throw_one = 0xFFFF;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
unsigned throw_one = 0xFFFF;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#define BOOST_THREAD_VERSION 4
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#define BOOST_THREAD_USES_MOVE
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
// thread(const thread&) = delete;
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
// thread();
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <cassert>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// thread(thread&& t);
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#define BOOST_THREAD_PROVIDES_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// };
|
||||
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// void detach();
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// id get_id() const;
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// void join();
|
||||
#define BOOST_THREAD_VESRION 3
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <boost/thread/locks.hpp>
|
||||
#include <new>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// bool joinable() const;
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// native_handle_type native_handle();
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
@@ -61,7 +61,7 @@ int main()
|
||||
{
|
||||
{
|
||||
boost::thread t0( (G()));
|
||||
// boost::thread::native_handle_type hdl =
|
||||
// boost::thread::native_handle_type hdl =
|
||||
(void)t0.native_handle();
|
||||
t0.join();
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// native_handle_type native_handle();
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <cstdlib>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
// bool try_join_for(const chrono::duration<Rep, Period>& rel_time);
|
||||
|
||||
#define BOOST_THREAD_VESRION 3
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <boost/thread/locks.hpp>
|
||||
#include <new>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
// bool try_join_until(const chrono::time_point<Clock, Duration>& t);
|
||||
|
||||
#define BOOST_THREAD_VESRION 3
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <boost/thread/locks.hpp>
|
||||
#include <new>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
// void swap(thread& x, thread& y);
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// static unsigned hardware_concurrency();
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/thread_only.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
|
||||
Reference in New Issue
Block a user