Changes in src/libcfa/concurrency/threads [c84e80a:8118303]
- File:
-
- 1 edited
-
src/libcfa/concurrency/threads (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/threads
rc84e80a r8118303 28 28 // Anything that is resumed is a coroutine. 29 29 trait is_thread(dtype T /*| sized(T)*/) { 30 void main(T* this);30 void co_main(T* this); 31 31 thread_h* get_thread(T* this); 32 32 /*void ?{}(T*); … … 37 37 static inline coroutine* get_coroutine(T* this) { 38 38 return &get_thread(this)->c; 39 }40 41 static inline coroutine* get_coroutine(thread_h* this) {42 return &this->c;43 39 } 44 40
Note:
See TracChangeset
for help on using the changeset viewer.