Changes in src/tests/sched-int-block.c [9fe39530:83a071f9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/sched-int-block.c
r9fe39530 r83a071f9 1 //---------------------------------------------------------2 // Barging test3 // Ensures that no barging can occur between :4 // - the frontend of the signal_block and the signaled thread5 // - the signaled threadand the backend of the signal_block6 //---------------------------------------------------------7 8 9 1 #include <fstream> 10 2 #include <kernel> … … 13 5 #include <thread> 14 6 15 #include <time.h> 16 17 static const unsigned long N = 5_000ul; 18 19 #ifndef PREEMPTION_RATE 20 #define PREEMPTION_RATE 10_000ul 7 #ifndef N 8 #define N 10_000 21 9 #endif 22 23 unsigned int default_preemption() {24 return PREEMPTION_RATE;25 }26 10 27 11 enum state_t { WAITED, SIGNAL, BARGE }; … … 118 102 119 103 int main(int argc, char* argv[]) { 120 rand48seed( time( NULL ));104 rand48seed(0); 121 105 done = false; 122 106 processor p;
Note: See TracChangeset
for help on using the changeset viewer.