File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -3003,18 +3003,10 @@ namespace WPEFramework
3003
3003
}
3004
3004
3005
3005
std::unique_lock<std::mutex> lk (_instance->m_pollExitMutex );
3006
- bool signaled = _instance->m_ThreadExitCV .wait_for (
3007
- lk,
3008
- std::chrono::milliseconds (_instance->m_sleepTime ),
3009
- [&]{ return _instance->m_pollThreadExit ; }
3010
- );
3011
-
3012
- if (!signaled) {
3013
- // timeout -> continue polling loop
3006
+ if ( _instance->m_ThreadExitCV .wait_for (lk, std::chrono::milliseconds (_instance->m_sleepTime )) == std::cv_status::timeout )
3014
3007
continue ;
3015
- } else {
3016
- LOGINFO (" Thread is going to Exit m_pollThreadExit %d\n " , _instance->m_pollThreadExit );
3017
- }
3008
+ else
3009
+ LOGINFO (" Thread is going to Exit m_pollThreadExit %d\n " , _instance->m_pollThreadExit );
3018
3010
3019
3011
}
3020
3012
}
You can’t perform that action at this time.
0 commit comments