Changeset e9e4e9ee for src/libcfa/concurrency/threads
- Timestamp:
- Jan 19, 2017, 11:04:27 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 2175062
- Parents:
- 5ebb2fbc (diff), 68e6031 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/threads
r5ebb2fbc re9e4e9ee 28 28 // Anything that is resumed is a coroutine. 29 29 trait is_thread(dtype T /*| sized(T)*/) { 30 void co_main(T* this);30 void 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; 39 43 } 40 44
Note:
See TracChangeset
for help on using the changeset viewer.