Changeset e84ab3d for libcfa/src/concurrency/clib
- Timestamp:
- Jul 5, 2021, 4:44:20 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 7f62b708
- Parents:
- ee23a8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.cfa
ree23a8d re84ab3d 23 23 #include "cfathread.h" 24 24 25 extern void ?{}(processor &, const char[], cluster &, $thread*);25 extern void ?{}(processor &, const char[], cluster &, thread$ *); 26 26 extern "C" { 27 27 extern void __cfactx_invoke_thread(void (*main)(void *), void * this); … … 34 34 35 35 struct cfathread_object { 36 $threadself;36 thread$ self; 37 37 void * (*themain)( void * ); 38 38 void * arg; … … 42 42 void ^?{}(cfathread_object & mutex this); 43 43 44 static inline $thread* get_thread( cfathread_object & this ) { return &this.self; }44 static inline thread$ * get_thread( cfathread_object & this ) { return &this.self; } 45 45 46 46 typedef ThreadCancelled(cfathread_object) cfathread_exception; … … 81 81 // Special Init Thread responsible for the initialization or processors 82 82 struct __cfainit { 83 $threadself;83 thread$ self; 84 84 void (*init)( void * ); 85 85 void * arg; … … 88 88 void ^?{}(__cfainit & mutex this); 89 89 90 static inline $thread* get_thread( __cfainit & this ) { return &this.self; }90 static inline thread$ * get_thread( __cfainit & this ) { return &this.self; } 91 91 92 92 typedef ThreadCancelled(__cfainit) __cfainit_exception; … … 109 109 110 110 // Don't use __thrd_start! just prep the context manually 111 $thread* this_thrd = get_thread(this);111 thread$ * this_thrd = get_thread(this); 112 112 void (*main_p)(__cfainit &) = main; 113 113
Note: See TracChangeset
for help on using the changeset viewer.