Changeset 5456537 for libcfa/src/concurrency/coroutine.cfa
- Timestamp:
- Apr 26, 2021, 10:21:09 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 8840228, df24d37
- Parents:
- aec68b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.cfa
raec68b6 r5456537 61 61 forall(T & | is_coroutine(T)) 62 62 void __cfaehm_cancelled_coroutine( 63 T & cor, $coroutine * desc, _EHM_VTABLE_TYPE(CoroutineCancelled)(T) & const _default_vtable) {63 T & cor, $coroutine * desc, EHM_DEFAULT_VTABLE(CoroutineCancelled, (T)) ) { 64 64 verify( desc->cancellation ); 65 65 desc->state = Cancelled; … … 145 145 // Part of the Public API 146 146 // Not inline since only ever called once per coroutine 147 forall(T & | is_coroutine(T) | { _EHM_VTABLE_TYPE(CoroutineCancelled)(T) & const _default_vtable; })147 forall(T & | is_coroutine(T) | { EHM_DEFAULT_VTABLE(CoroutineCancelled, (T)); }) 148 148 void prime(T& cor) { 149 149 $coroutine* this = get_coroutine(cor);
Note: See TracChangeset
for help on using the changeset viewer.