Changeset dcad80a


Ignore:
Timestamp:
Jun 29, 2021, 6:29:55 PM (7 months ago)
Author:
caparsons <caparson@…>
Branches:
jacob/cs343-translation, master, new-ast-unique-expr
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.