Ignore:
Timestamp:
Mar 27, 2020, 7:28:06 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
bb2e05e
Parents:
f0ce5f4
Message:

Fixed ready state.
Fixed race condition between halt and wake_*

File:
1 edited

Legend:

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

    rf0ce5f4 r92e7631  
    7676        bool pending_preemption;
    7777
    78         // Idle lock
    79         __bin_sem_t idleLock;
     78        // Idle lock (kernel semaphore)
     79        __bin_sem_t idle;
    8080
    8181        // Termination
     
    8383        volatile bool do_terminate;
    8484
    85         // Termination synchronisation
     85        // Termination synchronisation (user semaphore)
    8686        semaphore terminated;
    8787
     
    126126
    127127        // List of processors
    128         __spinlock_t proc_list_lock;
     128        __spinlock_t idle_lock;
    129129        __dllist_t(struct processor) procs;
    130130        __dllist_t(struct processor) idles;
Note: See TracChangeset for help on using the changeset viewer.