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