Ignore:
Timestamp:
Apr 26, 2021, 10:21:09 AM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
arm-eh, jacob/cs343-translation, master
Children:
8840228, df24d37
Parents:
aec68b6
Message:

A bit of clean-up, wrapping the detail of the default vtable up in a macro.

File:
1 edited

Legend:

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

    raec68b6 r5456537  
    8080
    8181forall(T & | is_thread(T) | IS_EXCEPTION(ThreadCancelled, (T))
    82     | { _EHM_VTABLE_TYPE(ThreadCancelled)(T) & const _default_vtable; })
     82    | { EHM_DEFAULT_VTABLE(ThreadCancelled, (T)); })
    8383void ?{}( thread_dtor_guard_t & this,
    8484                T & thrd, void(*cancelHandler)(ThreadCancelled(T) &)) {
     
    159159//-----------------------------------------------------------------------------
    160160forall(T & | is_thread(T) | IS_RESUMPTION_EXCEPTION(ThreadCancelled, (T))
    161     | { _EHM_VTABLE_TYPE(ThreadCancelled)(T) & const _default_vtable; })
     161    | { EHM_DEFAULT_VTABLE(ThreadCancelled, (T)); })
    162162T & join( T & this ) {
    163163        thread_dtor_guard_t guard = { this, defaultResumptionHandler };
Note: See TracChangeset for help on using the changeset viewer.