/[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 3804 by schoenebeck, Mon Apr 6 12:41:49 2020 UTC revision 3805 by schoenebeck, Fri Aug 7 15:15:19 2020 UTC
# Line 83  void ConditionTest::testBlocksIfNotDesir Line 83  void ConditionTest::testBlocksIfNotDesir
83      t.SignalStartThread();      t.SignalStartThread();
84      usleep(400000); // wait 400ms      usleep(400000); // wait 400ms
85      CPPUNIT_ASSERT(t.resource == 0);      CPPUNIT_ASSERT(t.resource == 0);
86        if (t.resource == 0) {
87            // test is done; set condition to avoid this test suite to deadlock here
88            t.condition.Set(true);
89        }
90        usleep(100000); // give thread some time (100ms) to terminate cleanly
91  }  }
92    
93  // Check if Condition class blocks until desired condition is reached  // Check if Condition class blocks until desired condition is reached

Legend:
Removed from v.3804  
changed lines
  Added in v.3805

  ViewVC Help
Powered by ViewVC