Changeset e50d9cb8 for libcfa/src/concurrency/kernel
- Timestamp:
- Nov 1, 2022, 10:06:40 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 7cf8006
- Parents:
- 0bdfcc3 (diff), 03c56f6 (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
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
r0bdfcc3 re50d9cb8 535 535 #endif 536 536 537 node.next = 0p;538 node.prev = 0p;539 537 doregister(curr_cluster, this); 540 538 … … 659 657 #endif 660 658 661 threads{ __get};659 threads{}; 662 660 663 661 io.arbiter = create(); … … 739 737 lock (cltr->thread_list_lock __cfaabi_dbg_ctx2); 740 738 cltr->nthreads += 1; 741 push_front(cltr->threads, thrd);739 insert_first(cltr->threads, thrd); 742 740 unlock (cltr->thread_list_lock); 743 741 } … … 745 743 void unregister( cluster * cltr, thread$ & thrd ) { 746 744 lock (cltr->thread_list_lock __cfaabi_dbg_ctx2); 747 remove(cltr->threads, thrd ); 748 cltr->nthreads -= 1; 745 { 746 tytagref( dlink(thread$), dlink(thread$) ) ?`inner( thread$ & this ) = void; 747 with( DLINK_VIA( thread$, thread$.cltr_link ) ) 748 remove( thrd ); 749 cltr->nthreads -= 1; 750 } 749 751 unlock(cltr->thread_list_lock); 750 752 }
Note:
See TracChangeset
for help on using the changeset viewer.