mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Lots of stuff
This commit is contained in:
17
GpD3D/GpFiber_Win32.cpp
Normal file
17
GpD3D/GpFiber_Win32.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user