Files
Aerofoil/PortabilityLayer/WorkerThread.h

22 lines
342 B
C++

#pragma once
#include <stdint.h>
namespace PortabilityLayer
{
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();
};
}