Changeset 71c8b7e
- Timestamp:
- May 5, 2020, 4:45:52 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6e33a2d
- Parents:
- 4e74466
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r4e74466 r71c8b7e 987 987 void ^?{}(semaphore & this) {} 988 988 989 voidP(semaphore & this) with( this ){989 bool P(semaphore & this) with( this ){ 990 990 lock( lock __cfaabi_dbg_ctx2 ); 991 991 count -= 1; … … 997 997 unlock( lock ); 998 998 park( __cfaabi_dbg_ctx ); 999 return true; 999 1000 } 1000 1001 else { 1001 1002 unlock( lock ); 1003 return false; 1002 1004 } 1003 1005 } -
libcfa/src/concurrency/kernel.hfa
r4e74466 r71c8b7e 38 38 void ?{}(semaphore & this, int count = 1); 39 39 void ^?{}(semaphore & this); 40 voidP (semaphore & this);40 bool P (semaphore & this); 41 41 bool V (semaphore & this); 42 42 bool V (semaphore & this, unsigned count);
Note: See TracChangeset
for help on using the changeset viewer.