mirror of
https://github.com/boostorg/thread.git
synced 2026-01-24 06:22:12 +00:00
Thread: Fixed cout access issue
[SVN r80821]
This commit is contained in:
@@ -282,28 +282,20 @@ namespace boost
|
||||
|
||||
void wait(bool rethrow=true)
|
||||
{
|
||||
//std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
boost::unique_lock<boost::mutex> lock(mutex);
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
do_callback(lock);
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
while(!done)
|
||||
{
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
waiters.wait(lock);
|
||||
}
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
if(rethrow && thread_was_interrupted)
|
||||
{
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
throw boost::thread_interrupted();
|
||||
}
|
||||
if(rethrow && exception)
|
||||
{
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
boost::rethrow_exception(exception);
|
||||
}
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
}
|
||||
|
||||
bool timed_wait_until(boost::system_time const& target_time)
|
||||
@@ -498,7 +490,6 @@ namespace boost
|
||||
move_dest_type get()
|
||||
{
|
||||
wait();
|
||||
std::cout << __FILE__ << ":" << __LINE__ << " " << " " <<std::endl;
|
||||
return static_cast<move_dest_type>(*result);
|
||||
//return boost::move(*result); // todo check why this doesn't works (references?)
|
||||
}
|
||||
@@ -914,7 +905,6 @@ namespace boost
|
||||
|
||||
bool valid() const BOOST_NOEXCEPT
|
||||
{
|
||||
//std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
return future_ != 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user