diff --git a/VolZmap.cpp b/VolZmap.cpp index 8eb4b4b..896d90d 100644 --- a/VolZmap.cpp +++ b/VolZmap.cpp @@ -776,7 +776,7 @@ VolZmap::CheckMapConnection( void) int nTerminated = 0 ; while ( nTerminated < nActiveThread) { for ( int i = 0 ; i < nThreadMax ; ++ i) { - if ( vRes[i].valid() && vRes[i].wait_for( chrono::microseconds{ 1 }) == future_status::ready) { + if ( vRes[i].valid() && vRes[i].wait_for( chrono::microseconds{ 10}) == future_status::ready) { vRes[i].get() ; ++ nTerminated ; } diff --git a/VolZmapGraphics.cpp b/VolZmapGraphics.cpp index 26a7b21..7f66c45 100644 --- a/VolZmapGraphics.cpp +++ b/VolZmapGraphics.cpp @@ -933,7 +933,7 @@ VolZmap::UpdateTripleMapGraphics( void) const int nTerminated = 0 ; while ( nTerminated < nBlockUpdated) { for ( int i = 0 ; i < m_nNumBlock ; ++ i) { - if ( m_BlockToUpdate[i] && vRes[i].valid() && vRes[i].wait_for( chrono::microseconds{ 1 }) == future_status::ready) { + if ( m_BlockToUpdate[i] && vRes[i].valid() && vRes[i].wait_for( chrono::microseconds{ 10}) == future_status::ready) { bOk = vRes[i].get() && bOk ; ++ nTerminated ; }