mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Improve load screen responsiveness
This commit is contained in:
23
PortabilityLayer/WorkerThread.h
Normal file
23
PortabilityLayer/WorkerThread.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
class HostThreadEvent;
|
||||
|
||||
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();
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user