Ignore:
Timestamp:
Nov 19, 2021, 11:39:35 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
1757f98, c60e5094
Parents:
b14ec5f
Message:

Fix the new FD change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.cfa

    rb14ec5f ra633f6f  
    825825                insert_last(this.actives, proc);
    826826
    827                 __atomic_store_n(&this.fd, this.idles`first.idle, __ATOMIC_SEQ_CST);
     827                {
     828                        int fd = 0;
     829                        if(!this.idles`isEmpty) fd = this.idles`first.idle;
     830                        __atomic_store_n(&this.fd, fd, __ATOMIC_SEQ_CST);
     831                }
     832
    828833        unlock( this );
    829834        /* paranoid */ verify( ! __preemption_enabled() );
Note: See TracChangeset for help on using the changeset viewer.