Changeset af7acb9 for libcfa/src/concurrency/kernel.cfa
- Timestamp:
- May 8, 2020, 11:53:29 AM (3 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:
- 04bc1c0
- Parents:
- 6ec07e5 (diff), e68d092 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r6ec07e5 raf7acb9 256 256 } 257 257 258 void ?{}(cluster & this, const char name[], Duration preemption_rate ) with( this ) {258 void ?{}(cluster & this, const char name[], Duration preemption_rate, int io_flags) with( this ) { 259 259 this.name = name; 260 260 this.preemption_rate = preemption_rate; … … 270 270 threads{ __get }; 271 271 272 __kernel_io_startup( this, &this == mainCluster );272 __kernel_io_startup( this, io_flags, &this == mainCluster ); 273 273 274 274 doregister(this); … … 993 993 void ^?{}(semaphore & this) {} 994 994 995 voidP(semaphore & this) with( this ){995 bool P(semaphore & this) with( this ){ 996 996 lock( lock __cfaabi_dbg_ctx2 ); 997 997 count -= 1; … … 1003 1003 unlock( lock ); 1004 1004 park( __cfaabi_dbg_ctx ); 1005 return true; 1005 1006 } 1006 1007 else { 1007 1008 unlock( lock ); 1009 return false; 1008 1010 } 1009 1011 }
Note: See TracChangeset
for help on using the changeset viewer.