- File:
-
- 1 edited
-
src/libcfa/concurrency/coroutines (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutines
r8118303 rc84e80a 26 26 // Anything that is resumed is a coroutine. 27 27 trait is_coroutine(dtype T) { 28 void co_main(T * this);28 void 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); 31 33 32 34 //-----------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.