- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.cfa
r89eff25 r5456537 39 39 link.next = 0p; 40 40 link.prev = 0p; 41 link.preferred = -1u;42 last_proc = 0p;43 41 #if defined( __CFA_WITH_VERIFY__ ) 44 42 canary = 0x0D15EA5E0D15EA5Ep; … … 82 80 83 81 forall(T & | is_thread(T) | IS_EXCEPTION(ThreadCancelled, (T)) 84 | { _EHM_VTABLE_TYPE(ThreadCancelled)(T) & const _default_vtable; })82 | { EHM_DEFAULT_VTABLE(ThreadCancelled, (T)); }) 85 83 void ?{}( thread_dtor_guard_t & this, 86 84 T & thrd, void(*cancelHandler)(ThreadCancelled(T) &)) { … … 136 134 /* paranoid */ verify( this_thrd->context.SP ); 137 135 138 __schedule_thread( this_thrd );139 enable_interrupts( __cfaabi_dbg_ctx);136 schedule_thread$( this_thrd ); 137 enable_interrupts(); 140 138 } 141 139 … … 161 159 //----------------------------------------------------------------------------- 162 160 forall(T & | is_thread(T) | IS_RESUMPTION_EXCEPTION(ThreadCancelled, (T)) 163 | { _EHM_VTABLE_TYPE(ThreadCancelled)(T) & const _default_vtable; })161 | { EHM_DEFAULT_VTABLE(ThreadCancelled, (T)); }) 164 162 T & join( T & this ) { 165 163 thread_dtor_guard_t guard = { this, defaultResumptionHandler }; … … 170 168 disable_interrupts(); 171 169 uint64_t ret = __tls_rand(); 172 enable_interrupts( __cfaabi_dbg_ctx);170 enable_interrupts(); 173 171 return ret; 174 172 }
Note: See TracChangeset
for help on using the changeset viewer.