Changeset 71c8b7e for libcfa/src/concurrency/kernel.cfa
- Timestamp:
- May 5, 2020, 4:45:52 PM (4 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
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.