Ignore:
Timestamp:
Mar 31, 2021, 2:13:47 PM (7 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
c60ef63
Parents:
22b7579
Message:

Minor clean-up

File:
1 edited

Legend:

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

    r22b7579 rc7c178b  
    3939};
    4040
    41 static inline bool P(Semaphore0nary & this, $thread * thrd) __attribute__((artificial));
    4241static inline bool P(Semaphore0nary & this, $thread * thrd) {
    4342        /* paranoid */ verify(!(thrd->seqable.next));
     
    4847}
    4948
    50 static inline bool P(Semaphore0nary & this) __attribute__((artificial));
    5149static inline bool P(Semaphore0nary & this) {
    5250    $thread * thrd = active_thread();
     
    5654}
    5755
    58 static inline $thread * V(Semaphore0nary & this, const bool doUnpark = true) __attribute__((artificial));
    5956static inline $thread * V(Semaphore0nary & this, const bool doUnpark = true) {
    6057        $thread * next;
     
    205202        // open 'owner' before unlocking anyone
    206203        // so new and unlocked threads don't park incorrectly.
     204        // This may require additional fencing on ARM.
    207205        this.owner = 0p;
    208206
    209         return V(this.sem,true);
    210 }
    211 
    212 static inline size_t on_wait( fast_lock & this ) __attribute__((artificial));
    213 static inline void on_wakeup( fast_lock & this, size_t ) __attribute__((artificial));
    214 static inline void on_notify( fast_lock &, struct $thread * t ) __attribute__((artificial));
     207        return V(this.sem, true);
     208}
    215209
    216210static inline size_t on_wait( fast_lock & this ) { unlock(this); return 0; }
Note: See TracChangeset for help on using the changeset viewer.