- File:
-
- 1 edited
-
src/tests/preempt_longrun/processor.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/processor.c
r7bdcac1 r85b1deb 4 4 5 5 #include <unistd.h> 6 7 #include "long_tests.h"8 6 9 7 #ifndef PREEMPTION_RATE … … 19 17 int main(int argc, char* argv[]) { 20 18 processor * p[15]; 19 write(STDOUT_FILENO, "Preparing\n", sizeof("Preparing\n")); 21 20 for ( int pi = 0; pi < 15; pi++ ) { 22 21 p[pi] = new(); 23 22 } 24 for ( int i = 0; TEST(i < N); i++) { 23 write(STDOUT_FILENO, "Starting\n", sizeof("Starting\n")); 24 for ( int i = 0; i < N; i++) { 25 25 int pi = i % 15; 26 26 delete( p[pi] ); 27 27 p[pi] = new(); 28 KICK_WATCHDOG;29 28 } 29 write(STDOUT_FILENO, "Stopping\n", sizeof("Stopping\n")); 30 30 for ( int pi = 0; pi < 15; pi++ ) { 31 31 delete( p[pi] ); 32 32 } 33 write(STDOUT_FILENO, "Done\n", sizeof("Done\n")); 33 34 }
Note:
See TracChangeset
for help on using the changeset viewer.