Changeset a67c5b6 for libcfa/src/concurrency
- Timestamp:
- May 5, 2021, 4:30:23 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ce9ed84
- Parents:
- b9376fe
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
rb9376fe ra67c5b6 116 116 $thread * thrd; 117 117 } init; 118 119 struct KernelThreadData * local_data; 118 120 119 121 #if !defined(__CFA_NO_STATISTICS__) -
libcfa/src/concurrency/kernel/startup.cfa
rb9376fe ra67c5b6 228 228 __init_stats( __cfaabi_tls.this_stats ); 229 229 #endif 230 mainProcessor->local_data = &__cfaabi_tls; 230 231 231 232 // Enable preemption … … 282 283 #endif 283 284 285 mainProcessor->local_data = 0p; 286 284 287 unregister_tls( mainProcessor ); 285 288 … … 329 332 __cfaabi_tls.this_thread = 0p; 330 333 __cfaabi_tls.preemption_state.[enabled, disable_count] = [false, 1]; 334 proc->local_data = &__cfaabi_tls; 331 335 332 336 register_tls( proc ); … … 368 372 #endif 369 373 #endif 374 375 proc->local_data = 0p; 370 376 371 377 unregister_tls( proc ); … … 500 506 501 507 this.init.thrd = initT; 508 509 this.local_data = 0p; 502 510 503 511 this.idle = eventfd(0, 0);
Note: See TracChangeset
for help on using the changeset viewer.