Ignore:
Timestamp:
Jun 9, 2022, 2:25:56 PM (2 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
aeb20a4
Parents:
6e2b04e
Message:

fixed build (hopefully)

File:
1 edited

Legend:

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

    r6e2b04e rdb7a3ad  
    107107struct mcs_spin_node {
    108108        mcs_spin_node * volatile next;
    109         bool locked:1;
     109        volatile bool locked;
    110110};
    111111
     
    456456
    457457        // flag showing if lock is held
    458         bool held:1;
     458        volatile bool held;
    459459
    460460        #ifdef __CFA_DEBUG__
     
    481481        while(held) Pause();
    482482        held = true;
     483        // printf("locked\n");
    483484        unlock( lock, node );
    484485        #ifdef __CFA_DEBUG__
     
    488489
    489490static inline void unlock(spin_queue_lock & this) with(this) {
     491        // printf("unlocked\n");
    490492        #ifdef __CFA_DEBUG__
    491493        owner = 0p;
     
    511513
    512514        // flag showing if lock is held
    513         bool held:1;
     515        volatile bool held;
    514516
    515517        #ifdef __CFA_DEBUG__
     
    565567
    566568        // flag showing if lock is held
    567         bool held:1;
     569        volatile bool held;
    568570
    569571        #ifdef __CFA_DEBUG__
Note: See TracChangeset for help on using the changeset viewer.