Files
Aerofoil/PortabilityLayer/WorkerThread.h

24 lines
367 B
C
Raw Normal View History

2020-11-01 20:59:52 -05:00
#pragma once
#include <stdint.h>
namespace PortabilityLayer
{
class HostThreadEvent;
2020-11-02 18:19:31 -05:00
2020-11-01 20:59:52 -05:00
class WorkerThread
{
public:
typedef void(*Callback_t)(void *context);
static WorkerThread *Create();
virtual void Destroy() = 0;
virtual void AsyncExecuteTask(Callback_t callback, void *context) = 0;
protected:
WorkerThread();
virtual ~WorkerThread();
};
}