Changeset e5d9274 for libcfa/src/concurrency/thread.cfa
- Timestamp:
- Jun 2, 2022, 3:11:21 PM (2 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.cfa
r015925a re5d9274 19 19 #include "thread.hfa" 20 20 21 #include "exception.hfa" 21 22 #include "kernel/private.hfa" 22 #include " exception.hfa"23 #include "limits.hfa" 23 24 24 25 #define __CFA_INVOKE_PRIVATE__ … … 26 27 27 28 extern uint32_t __global_random_seed, __global_random_prime, __global_random_mask; 29 30 #pragma GCC visibility push(default) 28 31 29 32 //----------------------------------------------------------------------------- … … 42 45 curr_cluster = &cl; 43 46 link.next = 0p; 44 link.ts = -1llu;47 link.ts = MAX; 45 48 preferred = ready_queue_new_preferred(); 46 49 last_proc = 0p; … … 87 90 } 88 91 89 forall(T & | is_thread(T) | IS_EXCEPTION(ThreadCancelled ,(T))90 | { EHM_DEFAULT_VTABLE(ThreadCancelled ,(T)); })92 forall(T & | is_thread(T) | IS_EXCEPTION(ThreadCancelled(T)) 93 | { EHM_DEFAULT_VTABLE(ThreadCancelled(T)); }) 91 94 void ?{}( thread_dtor_guard_t & this, 92 95 T & thrd, void(*cancelHandler)(ThreadCancelled(T) &)) { … … 166 169 167 170 //----------------------------------------------------------------------------- 168 forall(T & | is_thread(T) | IS_RESUMPTION_EXCEPTION(ThreadCancelled ,(T))169 | { EHM_DEFAULT_VTABLE(ThreadCancelled,(T)); })171 forall(T & | is_thread(T) | IS_RESUMPTION_EXCEPTION(ThreadCancelled(T)) 172 | { EHM_DEFAULT_VTABLE(ThreadCancelled(T)); }) 170 173 T & join( T & this ) { 171 174 thread_dtor_guard_t guard = { this, defaultResumptionHandler };
Note: See TracChangeset
for help on using the changeset viewer.