Commit a8e5e5d3 authored by ledig's avatar ledig
Browse files

[FIX] MSVC doesn't know sleep but boost knows in which thread it currently is...

[FIX] MSVC doesn't know sleep but boost knows in which thread it currently is and therefor can sleep
parent 462e98ee
......@@ -87,7 +87,7 @@ void WROIManagerFibers::removeRoi( boost::shared_ptr< WRMROIRepresentation > roi
{
while ( m_recalcLock )
{
sleep( 10 );
boost::this_thread::sleep( boost::posix_time::seconds( 10 ) );
}
m_recalcLock = true;
......@@ -118,7 +118,7 @@ void WROIManagerFibers::removeBranch( boost::shared_ptr< WRMROIRepresentation >
{
while ( m_recalcLock )
{
sleep( 10 );
boost::this_thread::sleep( boost::posix_time::seconds( 10 ) );
}
m_recalcLock = true;
......@@ -170,7 +170,7 @@ void WROIManagerFibers::recalculate()
{
while ( m_recalcLock )
{
sleep( 10 );
boost::this_thread::sleep( boost::posix_time::seconds( 10 ) );
}
m_recalcLock = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment