- File:
-
- 1 edited
-
src/tests/preempt_longrun/processor.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/processor.c
r7bdcac1 rb9da9585 2 2 #include <thread> 3 3 #include <time> 4 5 #include <unistd.h>6 7 #include "long_tests.h"8 4 9 5 #ifndef PREEMPTION_RATE … … 15 11 } 16 12 17 static const unsigned long N = 5 0_000ul;13 static const unsigned long N = 5_000ul; 18 14 19 15 int main(int argc, char* argv[]) { … … 22 18 p[pi] = new(); 23 19 } 24 for ( int i = 0; TEST(i < N); i++) {20 for ( int i = 0; i < N; i++) { 25 21 int pi = i % 15; 26 22 delete( p[pi] ); 27 23 p[pi] = new(); 28 KICK_WATCHDOG;29 }30 for ( int pi = 0; pi < 15; pi++ ) {31 delete( p[pi] );32 24 } 33 25 }
Note:
See TracChangeset
for help on using the changeset viewer.