- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
r1757f98 r24e321c 100 100 // Other Forward Declarations 101 101 extern void __wake_proc(processor *); 102 extern int cfa_main_returned; // from interpose.cfa103 102 104 103 //----------------------------------------------------------------------------- … … 269 268 270 269 static void __kernel_shutdown(void) { 271 if(!cfa_main_returned) return;272 270 /* paranoid */ verify( __preemption_enabled() ); 273 271 disable_interrupts(); … … 527 525 this.local_data = 0p; 528 526 529 this.idle _fd= eventfd(0, 0);530 if (idle _fd< 0) {527 this.idle = eventfd(0, 0); 528 if (idle < 0) { 531 529 abort("KERNEL ERROR: PROCESSOR EVENTFD - %s\n", strerror(errno)); 532 530 } … … 542 540 // Not a ctor, it just preps the destruction but should not destroy members 543 541 static void deinit(processor & this) { 544 close(this.idle _fd);542 close(this.idle); 545 543 } 546 544 … … 584 582 // Cluster 585 583 static void ?{}(__cluster_proc_list & this) { 586 this. fd= 0;584 this.lock = 0; 587 585 this.idle = 0; 588 586 this.total = 0;
Note:
See TracChangeset
for help on using the changeset viewer.