mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
18 lines
242 B
C++
18 lines
242 B
C++
#include "GpFiber_Win32.h"
|
|
|
|
GpFiber_Win32::GpFiber_Win32(LPVOID fiber)
|
|
: m_fiber(fiber)
|
|
{
|
|
}
|
|
|
|
void GpFiber_Win32::YieldTo()
|
|
{
|
|
SwitchToFiber(m_fiber);
|
|
}
|
|
|
|
void GpFiber_Win32::Destroy()
|
|
{
|
|
DeleteFiber(m_fiber);
|
|
delete this;
|
|
}
|