- File:
-
- 1 edited
-
src/tests/concurrent/signal/disjoint.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/signal/disjoint.c
r8638cef r7bdcac1 4 4 #include <thread> 5 5 #include <time> 6 7 #include "long_tests.h" 6 8 7 9 #ifndef PREEMPTION_RATE … … 13 15 } 14 16 15 #ifdef LONG_TEST17 #ifdef TEST_LONG 16 18 static const unsigned long N = 300_000ul; 17 19 #else … … 71 73 if( (d.counter % 1000) == 0 ) sout | d.counter | endl; 72 74 73 return d.counter < N;75 return TEST(d.counter < N); 74 76 } 75 77 … … 77 79 78 80 void main( Waiter & this ) { 79 while( wait( mut, data ) ) { yield(); }81 while( wait( mut, data ) ) { KICK_WATCHDOG; yield(); } 80 82 } 81 83 … … 94 96 95 97 //This is technically a mutual exclusion violation but the mutex monitor protects us 96 bool running = data.counter < N&& data.counter > 0;98 bool running = TEST(data.counter < N) && data.counter > 0; 97 99 if( data.state != SIGNAL && running ) { 98 100 sout | "ERROR Eager signal" | data.state | endl;
Note:
See TracChangeset
for help on using the changeset viewer.