Ignore:
File:
1 edited

Legend:

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

    r1757f98 r24e321c  
    100100// Other Forward Declarations
    101101extern void __wake_proc(processor *);
    102 extern int cfa_main_returned;                                                   // from interpose.cfa
    103102
    104103//-----------------------------------------------------------------------------
     
    269268
    270269static void __kernel_shutdown(void) {
    271         if(!cfa_main_returned) return;
    272270        /* paranoid */ verify( __preemption_enabled() );
    273271        disable_interrupts();
     
    527525        this.local_data = 0p;
    528526
    529         this.idle_fd = eventfd(0, 0);
    530         if (idle_fd < 0) {
     527        this.idle = eventfd(0, 0);
     528        if (idle < 0) {
    531529                abort("KERNEL ERROR: PROCESSOR EVENTFD - %s\n", strerror(errno));
    532530        }
     
    542540// Not a ctor, it just preps the destruction but should not destroy members
    543541static void deinit(processor & this) {
    544         close(this.idle_fd);
     542        close(this.idle);
    545543}
    546544
     
    584582// Cluster
    585583static void ?{}(__cluster_proc_list & this) {
    586         this.fd    = 0;
     584        this.lock  = 0;
    587585        this.idle  = 0;
    588586        this.total = 0;
Note: See TracChangeset for help on using the changeset viewer.