Changeset 17af7d1 for src/libcfa/concurrency/thread
- Timestamp:
- Mar 17, 2017, 11:34:15 AM (8 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:
- b32ada31
- Parents:
- 9f1695b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/libcfa/concurrency/thread ¶
r9f1695b r17af7d1 33 33 }; 34 34 35 #define DECL_THREAD(X) thread_desc* get_thread(X* this) { return &this-> t; } void main(X* this)35 #define DECL_THREAD(X) thread_desc* get_thread(X* this) { return &this->__thrd; } void main(X* this) 36 36 37 37 forall( dtype T | is_thread(T) ) 38 38 static inline coroutine_desc* get_coroutine(T* this) { 39 return &get_thread(this)->c ;39 return &get_thread(this)->cor; 40 40 } 41 41 42 42 static inline coroutine_desc* get_coroutine(thread_desc* this) { 43 return &this->c ;43 return &this->cor; 44 44 } 45 45
Note: See TracChangeset
for help on using the changeset viewer.