- File:
-
- 1 edited
-
libcfa/src/concurrency/io/setup.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/setup.cfa
r8fc652e0 r6a77224 149 149 id.full_proc = false; 150 150 id.id = doregister(&id); 151 __cfaabi_tls.this_proc_id = &id;152 151 __cfaabi_dbg_print_safe( "Kernel : IO poller thread starting\n" ); 153 152 … … 179 178 __cfadbg_print_safe(io_core, "Kernel I/O : Unparking io poller %p\n", io_ctx); 180 179 #if !defined( __CFA_NO_STATISTICS__ ) 181 __cfaabi_tls.this_stats = io_ctx->self.curr_cluster->stats;180 kernelTLS.this_stats = io_ctx->self.curr_cluster->stats; 182 181 #endif 183 post( io_ctx->sem);182 __post( io_ctx->sem, &id ); 184 183 } 185 184 } … … 236 235 if( thrd.state == Ready || thrd.preempted != __NO_PREEMPTION ) { 237 236 238 ready_schedule_lock( );237 ready_schedule_lock( (struct __processor_id_t *)active_processor() ); 239 238 240 239 // This is the tricky case … … 254 253 thrd.preempted = __NO_PREEMPTION; 255 254 256 ready_schedule_unlock( );255 ready_schedule_unlock( (struct __processor_id_t *)active_processor() ); 257 256 258 257 // Pretend like the thread was blocked all along … … 276 275 } 277 276 } else { 278 post( this.thrd.sem);277 unpark( &thrd ); 279 278 } 280 279
Note:
See TracChangeset
for help on using the changeset viewer.