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