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