- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.hfa
r212c2187 r8c01e1b 68 68 // Private wrappers for context switch and stack creation 69 69 extern void CoroutineCtxSwitch(coroutine_desc * src, coroutine_desc * dst); 70 extern void create_stack( coStack_t * this, unsigned int storageSize);70 extern void __stack_prepare ( __stack_info_t * this, size_t size /* ignored if storage already allocated */); 71 71 72 72 // Suspend implementation inlined for performance … … 102 102 coroutine_desc * dst = get_coroutine(cor); 103 103 104 if( unlikely( !dst->stack.base) ) {105 create_stack(&dst->stack, dst->stack.size);104 if( unlikely(dst->context.SP == NULL) ) { 105 __stack_prepare(&dst->stack, 65000); 106 106 CtxStart(&cor, CtxInvokeCoroutine); 107 107 }
Note: See TracChangeset
for help on using the changeset viewer.