- File:
-
- 1 edited
-
src/libcfa/concurrency/coroutines (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutines
rc84e80a r8118303 26 26 // Anything that is resumed is a coroutine. 27 27 trait is_coroutine(dtype T) { 28 void main(T * this);28 void co_main(T * this); 29 29 coroutine * get_coroutine(T * this); 30 30 }; 31 32 #define DECL_COROUTINE(X) static inline coroutine* get_coroutine(X* this) { return &this->c; } void main(X* this);33 31 34 32 //-----------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.