Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/startup.cfa

    r145dcd5 r7cf3b1d  
    102102extern void __wake_proc(processor *);
    103103extern int cfa_main_returned;                                                   // from interpose.cfa
     104extern uint32_t __global_random_seed;
    104105
    105106//-----------------------------------------------------------------------------
     
    175176        this.context = &storage_mainThreadCtx;
    176177}
    177 
    178178
    179179
     
    490490        preferred = ready_queue_new_preferred();
    491491        last_proc = 0p;
     492        random_state = __global_random_seed;
    492493        #if defined( __CFA_WITH_VERIFY__ )
    493494                canary = 0x0D15EA5E0D15EA5Ep;
     
    536537        }
    537538
     539        this.idle_wctx.fd = 0;
     540
     541        // I'm assuming these two are reserved for standard input and output
     542        // so I'm using them as sentinels with idle_wctx.
     543        /* paranoid */ verify( this.idle_fd != 0 );
     544        /* paranoid */ verify( this.idle_fd != 1 );
     545
    538546        #if !defined(__CFA_NO_STATISTICS__)
    539547                print_stats = 0;
     
    589597// Cluster
    590598static void ?{}(__cluster_proc_list & this) {
    591         this.fd    = 0;
     599        this.fdw   = 0p;
    592600        this.idle  = 0;
    593601        this.total = 0;
Note: See TracChangeset for help on using the changeset viewer.