Changeset 5b7a3662
- Timestamp:
- Jan 10, 2022, 7:11:25 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 9b33337
- Parents:
- 418d31ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r418d31ac r5b7a3662 736 736 737 737 // Check if there is a sleeping processor 738 int fd = __atomic_load_n(&this->procs.fd, __ATOMIC_SEQ_CST); 738 // int fd = __atomic_load_n(&this->procs.fd, __ATOMIC_SEQ_CST); 739 int fd = 0; 740 if( __atomic_load_n(&this->procs.fd, __ATOMIC_SEQ_CST) != 0 ) { 741 fd = __atomic_exchange_n(&this->procs.fd, 0, __ATOMIC_RELAXED); 742 } 739 743 740 744 // If no one is sleeping, we are done
Note: See TracChangeset
for help on using the changeset viewer.