mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-25 07:36:36 +00:00
Cygwin port
This commit is contained in:
23
AerofoilPortable/GpFiber_Thread.h
Normal file
23
AerofoilPortable/GpFiber_Thread.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "IGpFiber.h"
|
||||
|
||||
struct IGpThreadEvent;
|
||||
|
||||
class GpFiber_Thread final : public IGpFiber
|
||||
{
|
||||
public:
|
||||
explicit GpFiber_Thread(void *thread, IGpThreadEvent *threadEvent);
|
||||
~GpFiber_Thread();
|
||||
|
||||
void YieldTo(IGpFiber *fromFiber) override;
|
||||
void YieldToTerminal(IGpFiber *fromFiber) override;
|
||||
void Destroy() override;
|
||||
|
||||
private:
|
||||
static int InternalThreadFunction(void *data);
|
||||
|
||||
bool m_isDestroying;
|
||||
IGpThreadEvent *m_event;
|
||||
void *m_thread;
|
||||
};
|
Reference in New Issue
Block a user