- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r4069faad r71c8b7e 254 254 } 255 255 256 void ?{}(cluster & this, const char name[], Duration preemption_rate ) with( this ) {256 void ?{}(cluster & this, const char name[], Duration preemption_rate, int io_flags) with( this ) { 257 257 this.name = name; 258 258 this.preemption_rate = preemption_rate; … … 268 268 threads{ __get }; 269 269 270 __kernel_io_startup( this, &this == mainCluster );270 __kernel_io_startup( this, io_flags, &this == mainCluster ); 271 271 272 272 doregister(this); … … 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.