Changeset cc56283 for libcfa/src/concurrency/kernel.cfa
- Timestamp:
- Jan 10, 2022, 4:14:23 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 4177592f, 770d9ab
- Parents:
- 04a8a54 (diff), 56d711f (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.cfa
r04a8a54 rcc56283 142 142 extern void __disable_interrupts_hard(); 143 143 extern void __enable_interrupts_hard(); 144 145 static inline void __disable_interrupts_checked() {146 /* paranoid */ verify( __preemption_enabled() );147 disable_interrupts();148 /* paranoid */ verify( ! __preemption_enabled() );149 }150 151 static inline void __enable_interrupts_checked( bool poll = true ) {152 /* paranoid */ verify( ! __preemption_enabled() );153 enable_interrupts( poll );154 /* paranoid */ verify( __preemption_enabled() );155 }156 144 157 145 … … 776 764 // Unconditionnaly wake a thread 777 765 void __wake_proc(processor * this) { 766 /* paranoid */ verify( ! __preemption_enabled() ); 767 778 768 __cfadbg_print_safe(runtime_core, "Kernel : waking Processor %p\n", this); 779 769 780 __disable_interrupts_checked(); 781 /* paranoid */ verify( ! __preemption_enabled() ); 782 eventfd_t val; 783 val = 1; 784 eventfd_write( this->idle_fd, val ); 785 __enable_interrupts_checked(); 770 eventfd_t val; 771 val = 1; 772 eventfd_write( this->idle_fd, val ); 773 774 /* paranoid */ verify( ! __preemption_enabled() ); 786 775 } 787 776
Note: See TracChangeset
for help on using the changeset viewer.