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