mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-07 09:10:00 +01:00
26 lines
533 B
C
26 lines
533 B
C
|
|
#pragma once
|
||
|
|
#include "PPCThread.h"
|
||
|
|
|
||
|
|
class PPCThreadManager : public ThreadBase
|
||
|
|
{
|
||
|
|
//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(bool isPPU);
|
||
|
|
void RemoveThread(const u32 id);
|
||
|
|
|
||
|
|
ArrayF<PPCThread>& GetThreads() { return m_threads; }
|
||
|
|
s32 GetThreadNumById(bool isPPU, u32 id);
|
||
|
|
//IdManager& GetIDs() {return m_threads_id;}
|
||
|
|
|
||
|
|
void Exec();
|
||
|
|
virtual void Task();
|
||
|
|
};
|