Improve load screen responsiveness

This commit is contained in:
elasota
2020-11-01 20:59:52 -05:00
parent 47be9d73e3
commit 475b8d21fb
13 changed files with 485 additions and 44 deletions

View 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();
};
}