Ignore:
Timestamp:
Jun 2, 2022, 3:11:21 PM (2 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
ced5e2a
Parents:
015925a (diff), fc134a48 (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

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

    r015925a re5d9274  
    1919#include "thread.hfa"
    2020
     21#include "exception.hfa"
    2122#include "kernel/private.hfa"
    22 #include "exception.hfa"
     23#include "limits.hfa"
    2324
    2425#define __CFA_INVOKE_PRIVATE__
     
    2627
    2728extern uint32_t __global_random_seed, __global_random_prime, __global_random_mask;
     29
     30#pragma GCC visibility push(default)
    2831
    2932//-----------------------------------------------------------------------------
     
    4245        curr_cluster = &cl;
    4346        link.next = 0p;
    44         link.ts   = -1llu;
     47        link.ts   = MAX;
    4548        preferred = ready_queue_new_preferred();
    4649        last_proc = 0p;
     
    8790}
    8891
    89 forall(T & | is_thread(T) | IS_EXCEPTION(ThreadCancelled, (T))
    90     | { EHM_DEFAULT_VTABLE(ThreadCancelled, (T)); })
     92forall(T & | is_thread(T) | IS_EXCEPTION(ThreadCancelled(T))
     93    | { EHM_DEFAULT_VTABLE(ThreadCancelled(T)); })
    9194void ?{}( thread_dtor_guard_t & this,
    9295                T & thrd, void(*cancelHandler)(ThreadCancelled(T) &)) {
     
    166169
    167170//-----------------------------------------------------------------------------
    168 forall(T & | is_thread(T) | IS_RESUMPTION_EXCEPTION(ThreadCancelled, (T))
    169     | { EHM_DEFAULT_VTABLE(ThreadCancelled, (T)); })
     171forall(T & | is_thread(T) | IS_RESUMPTION_EXCEPTION(ThreadCancelled(T))
     172        | { EHM_DEFAULT_VTABLE(ThreadCancelled(T)); })
    170173T & join( T & this ) {
    171174        thread_dtor_guard_t guard = { this, defaultResumptionHandler };
Note: See TracChangeset for help on using the changeset viewer.