45 |
int ConditionTest::ConditionCheckerLocking::Main() { |
int ConditionTest::ConditionCheckerLocking::Main() { |
46 |
staticcondition.WaitIf(!waitFor); |
staticcondition.WaitIf(!waitFor); |
47 |
resource++; |
resource++; |
48 |
while (!doUnlock) usleep(1000); // sleep until ordered to unlock the condition again |
while (!doUnlock) { |
49 |
|
usleep(1000); // sleep until ordered to unlock the condition again |
50 |
|
#if CONFIG_PTHREAD_TESTCANCEL |
51 |
|
TestCancel(); |
52 |
|
#endif |
53 |
|
} |
54 |
staticcondition.Unlock(); |
staticcondition.Unlock(); |
55 |
} |
} |
56 |
|
|