Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/sched-int-block.c

    r9fe39530 r83a071f9  
    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 
    91#include <fstream>
    102#include <kernel>
     
    135#include <thread>
    146
    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
    219#endif
    22 
    23 unsigned int default_preemption() {
    24         return PREEMPTION_RATE;
    25 }
    2610
    2711enum state_t { WAITED, SIGNAL, BARGE };
     
    118102
    119103int main(int argc, char* argv[]) {
    120         rand48seed( time( NULL ) );
     104        rand48seed(0);
    121105        done = false;
    122106        processor p;
Note: See TracChangeset for help on using the changeset viewer.