Changeset 13cdc8c for libcfa/src/concurrency/kernel.cfa
- Timestamp:
- Mar 30, 2022, 10:44:10 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- f870e257
- Parents:
- ee3da78 (diff), bdfd0bd (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
ree3da78 r13cdc8c 642 642 643 643 switch(fd) { 644 __attribute__((unused)) int ret; 644 645 case 0: 645 646 // If the processor isn't ready to sleep then the exchange will already wake it up … … 659 660 // If the processor was ready to sleep, we need to wake it up with an actual write 660 661 val = 1; 661 eventfd_write( fd, val ); 662 ret = eventfd_write( fd, val ); 663 /* paranoid */ verifyf( ret == 0, "Expected return to be 0, was %d\n", ret ); 662 664 663 665 #if !defined(__CFA_NO_STATISTICS__) … … 682 684 this->idle_wctx.sem = 1; 683 685 686 this->idle_wctx.wake__time = rdtscl(); 687 684 688 eventfd_t val; 685 689 val = 1; 686 eventfd_write( this->idle_wctx.evfd, val ); 687 690 __attribute__((unused)) int ret = eventfd_write( this->idle_wctx.evfd, val ); 691 692 /* paranoid */ verifyf( ret == 0, "Expected return to be 0, was %d\n", ret ); 688 693 /* paranoid */ verify( ! __preemption_enabled() ); 689 694 }
Note: See TracChangeset
for help on using the changeset viewer.