- File:
-
- 1 edited
-
libcfa/src/concurrency/coroutine.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.cfa
recfd758 r85ac70e8 46 46 47 47 //----------------------------------------------------------------------------- 48 EHM_VIRTUAL_TABLE(SomeCoroutineCancelled, std_coroutine_cancelled); 48 FORALL_DATA_INSTANCE(CoroutineCancelled, (coroutine_t &), (coroutine_t)) 49 50 forall(T &) 51 void mark_exception(CoroutineCancelled(T) *) {} 49 52 50 53 forall(T &) … … 68 71 69 72 // TODO: Remove explitate vtable set once trac#186 is fixed. 70 SomeCoroutineCancelledexcept;71 except.virtual_table = & std_coroutine_cancelled;73 CoroutineCancelled(T) except; 74 except.virtual_table = &get_exception_vtable(&except); 72 75 except.the_coroutine = &cor; 73 76 except.the_exception = except; 74 // Why does this need a cast? 75 throwResume (SomeCoroutineCancelled &)except; 77 throwResume except; 76 78 77 79 except->virtual_table->free( except );
Note:
See TracChangeset
for help on using the changeset viewer.