Ignore:
Timestamp:
Feb 25, 2026, 12:56:30 AM (2 days ago)
Author:
Matthew Au-Yeung <mw2auyeu@…>
Branches:
stuck-waitfor-destruct
Children:
88bb0b4
Parents:
a0548c2
Message:

Revert "Add a generated hash to fix stuck waitfor comparing static inline mutex destructors"

This reverts commit a30fceb1a73c4ef2bbee39a2b5406da881f51111.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/thread.cfa

    ra0548c2 r44940ee  
    6161
    6262        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 };
    6464}
    6565
     
    9393    | { EHM_DEFAULT_VTABLE(ThreadCancelled(T)); })
    9494void ?{}( thread_dtor_guard_t & this,
    95                 T & thrd, func_id_t func_id, void(*cancelHandler)(ThreadCancelled(T) &)) {
     95                T & thrd, void(*cancelHandler)(ThreadCancelled(T) &)) {
    9696        monitor$ * m = get_monitor(thrd);
    9797        thread$ * desc = get_thread(thrd);
     
    100100        void (*dtor)(T& mutex this) = ^?{};
    101101        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};
    104103
    105104
     
    173172        | { EHM_DEFAULT_VTABLE(ThreadCancelled(T)); })
    174173T & join( T & this ) {
    175         thread_dtor_guard_t guard = { this, (func_id_t)0, defaultResumptionHandler };
     174        thread_dtor_guard_t guard = { this, defaultResumptionHandler };
    176175        return this;
    177176}
Note: See TracChangeset for help on using the changeset viewer.