Ignore:
Timestamp:
Oct 26, 2020, 12:17:28 PM (4 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
342be43
Parents:
912cc7d7
Message:

Thread Cancellation, a test for it and a required fix to Specialization.

File:
1 edited

Legend:

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

    r912cc7d7 rab8c6a6  
    1919#include <unwind.h>
    2020#undef HIDE_EXPORTS
     21
     22extern void __cfactx_thrd_leave();
    2123}
    2224
     
    5254
    5355STOP_AT_END_FUNCTION(thread_cancelstop,
    54         // TODO: Instead pass information to the joiner.
    55         abort();
     56    __cfactx_thrd_leave();
     57    __cabi_abort( "Resumed cancelled thread" );
    5658)
    5759
     
    8587                stop_param = (void *)0x22;
    8688        } else {
     89                this_thread->self_cor.cancellation = unwind_exception;
     90
    8791                stop_func = thread_cancelstop;
    8892                stop_param = this_thread;
Note: See TracChangeset for help on using the changeset viewer.