Changeset f0ce5f4
- Timestamp:
- Mar 27, 2020, 12:41:19 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:
- 2bb2efa9, 92e7631
- Parents:
- ae7be7a
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
rae7be7a rf0ce5f4 312 312 unregister(this->cltr, this); 313 313 314 V( this->terminated ); 314 bool signalled = V( this->terminated ); 315 if(signalled) 315 316 316 317 __cfaabi_dbg_print_safe("Kernel : core %p terminated\n", this); … … 920 921 } 921 922 922 voidV(semaphore & this) with( this ) {923 bool V(semaphore & this) with( this ) { 923 924 $thread * thrd = 0p; 924 925 lock( lock __cfaabi_dbg_ctx2 ); … … 933 934 // make new owner 934 935 unpark( thrd __cfaabi_dbg_ctx2 ); 936 937 return thrd != 0p; 935 938 } 936 939 … … 988 991 void __cfaabi_dbg_record_thrd($thread & this, bool park, const char prev_name[]) { 989 992 if(park) { 990 this.p rev_park= prev_name;991 this.park_stale = false;993 this.park_caller = prev_name; 994 this.park_stale = false; 992 995 } 993 996 else { 994 this. prev_unpark= prev_name;995 this.unpark_stale = false;997 this.unpark_caller = prev_name; 998 this.unpark_stale = false; 996 999 } 997 1000 } -
libcfa/src/concurrency/kernel.hfa
rae7be7a rf0ce5f4 38 38 void ^?{}(semaphore & this); 39 39 void P (semaphore & this); 40 voidV (semaphore & this);40 bool V (semaphore & this); 41 41 42 42
Note: See TracChangeset
for help on using the changeset viewer.