mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-31 13:50:46 +01:00
26 lines
538 B
C++
26 lines
538 B
C++
#pragma once
|
|
#include "PPCThread.h"
|
|
|
|
class PPCThreadManager
|
|
{
|
|
//IdManager m_threads_id;
|
|
//ArrayF<PPUThread> m_ppu_threads;
|
|
//ArrayF<SPUThread> m_spu_threads;
|
|
ArrayF<PPCThread> m_threads;
|
|
|
|
public:
|
|
PPCThreadManager();
|
|
~PPCThreadManager();
|
|
|
|
void Close();
|
|
|
|
PPCThread& AddThread(PPCThreadType type);
|
|
void RemoveThread(const u32 id);
|
|
|
|
ArrayF<PPCThread>& GetThreads() { return m_threads; }
|
|
s32 GetThreadNumById(PPCThreadType type, u32 id);
|
|
PPCThread* GetThread(u32 id);
|
|
//IdManager& GetIDs() {return m_threads_id;}
|
|
|
|
void Exec();
|
|
}; |