Home
last modified time | relevance | path

Searched refs:stackDesc (Results 1 – 3 of 3) sorted by relevance

/TaskScheduler/Scheduler/Include/Platform/Windows/
H A DMTFiberOptimized.h47 Memory::StackDesc stackDesc; variable
81 Memory::FreeStack(stackDesc); in CleanUp()
123 stackDesc.stackTop = (void*)ReadTeb( MW_STACK_BASE_OFFSET /*FIELD_OFFSET(NT_TIB, StackBase)*/ ); in CreateFromCurrentThreadAndRun()
124stackDesc.stackBottom = (void*)ReadTeb( MW_STACK_STACK_LIMIT_OFFSET /*FIELD_OFFSET(NT_TIB, StackLi… in CreateFromCurrentThreadAndRun()
145 stackDesc = Memory::AllocStack(stackSize); in Create()
149 char* sp = (char *)stackDesc.stackTop; in Create()
208 …WriteTeb(MW_STACK_BASE_OFFSET /*FIELD_OFFSET(NT_TIB, StackBase)*/ , (uint64)to.stackDesc.stackTop); in SwitchTo()
209 …WriteTeb(MW_STACK_STACK_LIMIT_OFFSET/*FIELD_OFFSET(NT_TIB, StackLimit)*/, (uint64)to.stackDesc.sta… in SwitchTo()
215 …WriteTeb(MW_STACK_BASE_OFFSET /*FIELD_OFFSET(NT_TIB, StackBase)*/, (uint64)from.stackDesc.stackTop… in SwitchTo()
216 …STACK_STACK_LIMIT_OFFSET /*FIELD_OFFSET(NT_TIB, StackLimit)*/, (uint64)from.stackDesc.stackBottom); in SwitchTo()
/TaskScheduler/Scheduler/Include/Platform/Posix/
H A DMTFiber.h76 Memory::StackDesc stackDesc; variable
99 Memory::FreeStack(stackDesc); in CleanUp()
157 stackDesc = Memory::AllocStack(stackSize); in Create()
160 fiberContext.uc_stack.ss_sp = stackDesc.stackBottom; in Create()
161 fiberContext.uc_stack.ss_size = stackDesc.GetStackSize(); in Create()
H A DMTThread.h141 Memory::StackDesc stackDesc; variable
208 return stackDesc.stackBottom; in GetStackBottom()
226 stackDesc = Memory::AllocStack(_stackSize);
227 stackSize = stackDesc.GetStackSize();
235 err = pthread_attr_setstack(&threadAttr, stackDesc.stackBottom, stackSize);
294 if (stackDesc.stackMemory != nullptr) in Join()
296 Memory::FreeStack(stackDesc); in Join()