source: src/libcfa/kernel/kernel.h @ c15b805

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since c15b805 was c15b805, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

added skeleton for coroutines to cfa

  • Property mode set to 100644
File size: 252 bytes
Line 
1#pragma once
2
3struct coroutine {
4      int blarg;
5};
6
7trait coroutine_t(dtype T) {
8      coroutine* this_coroutine(T* this);
9};
10
11forall(dtype T | coroutine_t(T))
12void suspend(T* cor) {
13     
14}
15
16forall(dtype T | coroutine_t(T))
17void resume(T* cor) {
18
19}
Note: See TracBrowser for help on using the repository browser.