Changeset 17af7d1 for src/libcfa/concurrency/thread.c
- Timestamp:
- Mar 17, 2017, 11:34:15 AM (7 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
-
src/libcfa/concurrency/thread.c
r9f1695b r17af7d1 42 42 43 43 void ?{}(thread_desc* this) { 44 (&this->c ){};45 this->c .name = "Anonymous Coroutine";44 (&this->cor){}; 45 this->cor.name = "Anonymous Coroutine"; 46 46 (&this->terminated){}; 47 47 this->next = NULL; … … 49 49 50 50 void ^?{}(thread_desc* this) { 51 ^(&this->c ){};51 ^(&this->cor){}; 52 52 } 53 53 … … 120 120 extern "C" { 121 121 void __thread_signal_termination( thread_desc * this ) { 122 this->c .state = Halted;122 this->cor.state = Halted; 123 123 LIB_DEBUG_PRINTF("Thread end : %p\n", this); 124 124 signal( &this->terminated );
Note: See TracChangeset
for help on using the changeset viewer.