Lines Matching refs:fiberContext
42 MW_CONTEXT fiberContext; variable
100 MT_ASSERT(IsPointerAligned( &fiberContext, 16 ), "MW_CONTEXT must be aligned by 16 bytes"); in Fiber()
102 memset(&fiberContext, 0, sizeof(MW_CONTEXT)); in Fiber()
114 fiberContext.ContextFlags = MW_CONTEXT_FULL; in CreateFromCurrentThreadAndRun()
115 MW_BOOL res = GetThreadContext( GetCurrentThread(), &fiberContext ); in CreateFromCurrentThreadAndRun()
140 fiberContext.ContextFlags = MW_CONTEXT_FULL; in Create()
141 MW_BOOL res = GetThreadContext( GetCurrentThread(), &fiberContext ); in Create()
161 fiberContext.Rsp = (unsigned long long)sp; in Create()
163 fiberContext.Rip = (unsigned long long) pFunc; in Create()
170 fiberContext.Esp = (unsigned long long)sp; in Create()
171 fiberContext.Eip = (unsigned long long) pFunc; in Create()
178 fiberContext.ContextFlags = MW_CONTEXT_FULL; in Create()
199 from.fiberContext.ContextFlags = MW_CONTEXT_FULL; in SwitchTo()
200 MW_BOOL res = GetThreadContext(thread, &from.fiberContext ); in SwitchTo()
211 res = SetThreadContext(thread, &to.fiberContext ); in SwitchTo()