mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
22 lines
342 B
C++
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();
|
|
};
|
|
}
|