Changeset dcad80a


Ignore:
Timestamp:
Jun 29, 2021, 6:29:55 PM (3 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
262c600
Parents:
660665f
Message:

fixed bug with locks

File:
1 edited

Legend:

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

    r660665f rdcad80a  
    356356}
    357357
    358 
    359 void on_notify(linear_backoff_then_block_lock & this, struct $thread * t ) { unpark(t); }
    360 size_t on_wait(linear_backoff_then_block_lock & this) { unlock(this); return 0; }
    361 void on_wakeup(linear_backoff_then_block_lock & this, size_t recursion ) { lock(this); }
     358static inline void on_notify(linear_backoff_then_block_lock & this, struct $thread * t ) { unpark(t); }
     359static inline size_t on_wait(linear_backoff_then_block_lock & this) { unlock(this); return 0; }
     360static inline void on_wakeup(linear_backoff_then_block_lock & this, size_t recursion ) { lock(this); }
    362361
    363362//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.