Changeset c7a900a for libcfa/src/concurrency/invoke.h
- Timestamp:
- Feb 21, 2020, 5:31:19 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a8078ee
- Parents:
- a505021
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/invoke.h
ra505021 rc7a900a 96 96 97 97 struct coroutine_desc { 98 // context that is switch during a CtxSwitch98 // context that is switch during a __cfactx_switch 99 99 struct __stack_context_t context; 100 100 … … 161 161 struct thread_desc { 162 162 // Core threading fields 163 // context that is switch during a CtxSwitch163 // context that is switch during a __cfactx_switch 164 164 struct __stack_context_t context; 165 165 … … 204 204 } 205 205 206 static inline [thread_desc *&, thread_desc *& ] __get( thread_desc & this ) /*__attribute__((const))*/{206 static inline [thread_desc *&, thread_desc *& ] __get( thread_desc & this ) __attribute__((const)) { 207 207 return this.node.[next, prev]; 208 208 } … … 254 254 255 255 // assembler routines that performs the context switch 256 extern void CtxInvokeStub( void );257 extern void CtxSwitch( struct __stack_context_t * from, struct __stack_context_t * to ) asm ("CtxSwitch");256 extern void __cfactx_invoke_stub( void ); 257 extern void __cfactx_switch( struct __stack_context_t * from, struct __stack_context_t * to ) asm ("__cfactx_switch"); 258 258 // void CtxStore ( void * this ) asm ("CtxStore"); 259 259 // void CtxRet ( void * dst ) asm ("CtxRet");
Note: See TracChangeset
for help on using the changeset viewer.