Changeset 198e335 for libcfa/src


Ignore:
Timestamp:
Mar 31, 2021, 2:33:28 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
b580bcc
Parents:
826ee62
Message:

Fixed default parameter

File:
1 edited

Legend:

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

    r826ee62 r198e335  
    5454}
    5555
    56 static inline $thread * V(Semaphore0nary & this, const bool doUnpark = true) {
     56static inline $thread * V(Semaphore0nary & this, bool doUnpark = true) {
    5757        $thread * next;
    5858        lock(this.lock __cfaabi_dbg_ctx2);
     
    119119static inline bool P(ThreadBenaphore & this, bool wait)   { return wait ? P(this) : tryP(this); }
    120120
    121 static inline $thread * V(ThreadBenaphore & this, const bool doUnpark = true) {
     121static inline $thread * V(ThreadBenaphore & this, bool doUnpark = true) {
    122122        if (V(this.ben)) return 0p;
    123123        return V(this.sem, doUnpark);
     
    205205        this.owner = 0p;
    206206
    207         return V(this.sem, true);
     207        return V(this.sem);
    208208}
    209209
Note: See TracChangeset for help on using the changeset viewer.