/[svn]/linuxsampler/trunk/src/testcases/ConditionTest.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/testcases/ConditionTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1648 by schoenebeck, Fri Apr 29 20:43:07 2005 UTC revision 1649 by nagata, Fri Jan 25 15:06:02 2008 UTC
# Line 45  ConditionTest::ConditionCheckerLocking:: Line 45  ConditionTest::ConditionCheckerLocking::
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    

Legend:
Removed from v.1648  
changed lines
  Added in v.1649

  ViewVC Help
Powered by ViewVC