Cemu/src/util/Fiber/Fiber.h
2022-08-26 04:03:26 +02:00

22 lines
455 B
C++

#pragma once
#if BOOST_OS_WINDOWS
#endif
class Fiber
{
public:
Fiber(void(*FiberEntryPoint)(void* userParam), void* userParam, void* privateData);
~Fiber();
static Fiber* PrepareCurrentThread(void* privateData = nullptr);
static void Switch(Fiber& targetFiber);
static void* GetFiberPrivateData();
private:
Fiber(void* privateData); // fiber from current thread
void* m_implData{nullptr};
void* m_privateData;
void* m_stackPtr{ nullptr };
};