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 | |
---|
3 | struct coroutine { |
---|
4 | int blarg; |
---|
5 | }; |
---|
6 | |
---|
7 | trait coroutine_t(dtype T) { |
---|
8 | coroutine* this_coroutine(T* this); |
---|
9 | }; |
---|
10 | |
---|
11 | forall(dtype T | coroutine_t(T)) |
---|
12 | void suspend(T* cor) { |
---|
13 | |
---|
14 | } |
---|
15 | |
---|
16 | forall(dtype T | coroutine_t(T)) |
---|
17 | void resume(T* cor) { |
---|
18 | |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.