Changeset 44940ee for libcfa/src/concurrency/thread.cfa
- Timestamp:
- Feb 25, 2026, 12:56:30 AM (2 days ago)
- Branches:
- stuck-waitfor-destruct
- Children:
- 88bb0b4
- Parents:
- a0548c2
- File:
-
- 1 edited
-
libcfa/src/concurrency/thread.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.cfa
ra0548c2 r44940ee 61 61 62 62 doregister(curr_cluster, this); 63 monitors{ &self_mon_p, 1, (fptr_t)0 , (func_id_t)0};63 monitors{ &self_mon_p, 1, (fptr_t)0 }; 64 64 } 65 65 … … 93 93 | { EHM_DEFAULT_VTABLE(ThreadCancelled(T)); }) 94 94 void ?{}( thread_dtor_guard_t & this, 95 T & thrd, func_id_t func_id,void(*cancelHandler)(ThreadCancelled(T) &)) {95 T & thrd, void(*cancelHandler)(ThreadCancelled(T) &)) { 96 96 monitor$ * m = get_monitor(thrd); 97 97 thread$ * desc = get_thread(thrd); … … 100 100 void (*dtor)(T& mutex this) = ^?{}; 101 101 bool join = cancelHandler != (void(*)(ThreadCancelled(T)&))0; 102 this.func_id = func_id; 103 (this.mg){&m, (void(*)())dtor, func_id, join}; 102 (this.mg){&m, (void(*)())dtor, join}; 104 103 105 104 … … 173 172 | { EHM_DEFAULT_VTABLE(ThreadCancelled(T)); }) 174 173 T & join( T & this ) { 175 thread_dtor_guard_t guard = { this, (func_id_t)0,defaultResumptionHandler };174 thread_dtor_guard_t guard = { this, defaultResumptionHandler }; 176 175 return this; 177 176 }
Note:
See TracChangeset
for help on using the changeset viewer.