- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r71c8b7e r4069faad 254 254 } 255 255 256 void ?{}(cluster & this, const char name[], Duration preemption_rate , int io_flags) with( this ) {256 void ?{}(cluster & this, const char name[], Duration preemption_rate) 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, io_flags,&this == mainCluster );270 __kernel_io_startup( this, &this == mainCluster ); 271 271 272 272 doregister(this); … … 987 987 void ^?{}(semaphore & this) {} 988 988 989 boolP(semaphore & this) with( this ){989 void 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;1000 999 } 1001 1000 else { 1002 1001 unlock( lock ); 1003 return false;1004 1002 } 1005 1003 }
Note:
See TracChangeset
for help on using the changeset viewer.