change last logic to PIThreadNotifier
This commit is contained in:
@@ -118,7 +118,7 @@ void PIThreadNotifier::wait() {
|
||||
bool PIThreadNotifier::waitFor(PISystemTime timeout) {
|
||||
bool ret = false;
|
||||
m.lock();
|
||||
v.waitFor(m, timeout);
|
||||
if (cnt == 0) v.waitFor(m, timeout);
|
||||
if (cnt > 0) {
|
||||
cnt--;
|
||||
ret = true;
|
||||
|
||||
Reference in New Issue
Block a user