mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-28 01:25:32 +01:00
22 lines
455 B
C++
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 };
|
|
}; |