- File:
-
- 1 edited
-
src/tests/concurrent/signal/wait.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/signal/wait.c
rb9da9585 r7bdcac1 12 12 #include <time> 13 13 14 #include "long_tests.h" 15 14 16 #ifndef PREEMPTION_RATE 15 17 #define PREEMPTION_RATE 10`ms … … 20 22 } 21 23 22 #ifdef LONG_TEST24 #ifdef TEST_LONG 23 25 static const unsigned long N = 375_000ul; 24 26 #else … … 90 92 // Waiter ABC 91 93 void main( WaiterABC & this ) { 92 for( int i = 0; i < N; i++ ) {94 for( int i = 0; TEST(i < N); i++ ) { 93 95 wait( condABC, globalA, globalB, globalC ); 96 KICK_WATCHDOG; 94 97 } 95 98 … … 100 103 // Waiter AB 101 104 void main( WaiterAB & this ) { 102 for( int i = 0; i < N; i++ ) {105 for( int i = 0; TEST(i < N); i++ ) { 103 106 wait( condAB , globalA, globalB ); 107 KICK_WATCHDOG; 104 108 } 105 109 … … 110 114 // Waiter AC 111 115 void main( WaiterAC & this ) { 112 for( int i = 0; i < N; i++ ) {116 for( int i = 0; TEST(i < N); i++ ) { 113 117 wait( condAC , globalA, globalC ); 118 KICK_WATCHDOG; 114 119 } 115 120 … … 120 125 // Waiter BC 121 126 void main( WaiterBC & this ) { 122 for( int i = 0; i < N; i++ ) {127 for( int i = 0; TEST(i < N); i++ ) { 123 128 wait( condBC , globalB, globalC ); 129 KICK_WATCHDOG; 124 130 } 125 131
Note:
See TracChangeset
for help on using the changeset viewer.