mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-04-24 23:37:24 -05:00
25 lines
603 B
C++
25 lines
603 B
C++
#pragma once
|
|
|
|
#include "type.h"
|
|
|
|
namespace ui
|
|
{
|
|
class threadProcMngr
|
|
{
|
|
public:
|
|
~threadProcMngr();
|
|
//Draw function is used and called to draw on overlay
|
|
threadInfo *newThread(ThreadFunc func, void *args, funcPtr _drawFunc);
|
|
void update();
|
|
void draw();
|
|
bool empty() { return threads.empty(); }
|
|
|
|
private:
|
|
std::vector<threadInfo *> threads;
|
|
uint8_t lgFrame = 0, clrShft = 0;
|
|
bool clrAdd = true;
|
|
unsigned frameCount = 0;
|
|
Mutex threadLock = 0;
|
|
};
|
|
}
|