Changeset 7770cc8 for libcfa/src/concurrency/kernel/startup.cfa
- Timestamp:
- Nov 24, 2021, 9:47:56 PM (2 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 5235d49
- Parents:
- 94647b0 (diff), 3cc1111 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
r94647b0 r7770cc8 100 100 // Other Forward Declarations 101 101 extern void __wake_proc(processor *); 102 extern int cfa_main_returned; // from interpose.cfa 102 103 103 104 //----------------------------------------------------------------------------- … … 268 269 269 270 static void __kernel_shutdown(void) { 271 if(!cfa_main_returned) return; 270 272 /* paranoid */ verify( __preemption_enabled() ); 271 273 disable_interrupts(); … … 525 527 this.local_data = 0p; 526 528 527 this.idle = eventfd(0, 0);528 if (idle < 0) {529 this.idle_fd = eventfd(0, 0); 530 if (idle_fd < 0) { 529 531 abort("KERNEL ERROR: PROCESSOR EVENTFD - %s\n", strerror(errno)); 530 532 } … … 540 542 // Not a ctor, it just preps the destruction but should not destroy members 541 543 static void deinit(processor & this) { 542 close(this.idle );544 close(this.idle_fd); 543 545 } 544 546 … … 582 584 // Cluster 583 585 static void ?{}(__cluster_proc_list & this) { 584 this. lock= 0;586 this.fd = 0; 585 587 this.idle = 0; 586 588 this.total = 0;
Note: See TracChangeset
for help on using the changeset viewer.