Changeset 198e335
- Timestamp:
- Mar 31, 2021, 2:33:28 PM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r826ee62 r198e335 54 54 } 55 55 56 static inline $thread * V(Semaphore0nary & this, constbool doUnpark = true) {56 static inline $thread * V(Semaphore0nary & this, bool doUnpark = true) { 57 57 $thread * next; 58 58 lock(this.lock __cfaabi_dbg_ctx2); … … 119 119 static inline bool P(ThreadBenaphore & this, bool wait) { return wait ? P(this) : tryP(this); } 120 120 121 static inline $thread * V(ThreadBenaphore & this, constbool doUnpark = true) {121 static inline $thread * V(ThreadBenaphore & this, bool doUnpark = true) { 122 122 if (V(this.ben)) return 0p; 123 123 return V(this.sem, doUnpark); … … 205 205 this.owner = 0p; 206 206 207 return V(this.sem , true);207 return V(this.sem); 208 208 } 209 209
Note: See TracChangeset
for help on using the changeset viewer.