Changeset 7fbe450 for src/examples/thread.c
- Timestamp:
- Jan 18, 2017, 12:06:44 PM (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:
- c84e80a
- Parents:
- c49bf54
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/thread.c
rc49bf54 r7fbe450 26 26 void ^?{}( MyThread * this ) {} 27 27 28 void co_main(MyThread* this) {28 void main(MyThread* this) { 29 29 printf("Main called with %p\n", this); 30 30 printf("Thread value is %d\n", this->value); … … 44 44 printf("Address %p\n", this); 45 45 printf("handle %p\n", get_thread(this)); 46 printf("main %p\n", co_main);46 printf("main %p\n", main); 47 47 printf("get_t %p\n", get_thread); 48 48 printf("invoke %p\n", CtxInvokeThread); … … 57 57 thread(MyThread) thread1; 58 58 59 printf("Main is %p\n", this_coroutine()); 59 printf("Main is %p\n", this_coroutine()); 60 60 61 61 printf("First thread created\n");
Note: See TracChangeset
for help on using the changeset viewer.