- Implemented send open system menu cmd.

- Added cellSysutil module.
- Improved OpenGL renderer.
- Added cube & hello world homebrews.
- Implemented more GCM syscalls.
This commit is contained in:
DH 2013-08-19 02:06:11 +03:00
parent 2f5fa75bb4
commit 234e174b7d
28 changed files with 702 additions and 85 deletions

View file

@ -20,6 +20,8 @@ void PPCThreadManager::Close()
PPCThread& PPCThreadManager::AddThread(PPCThreadType type)
{
std::lock_guard<std::mutex> lock(m_mtx_thread);
PPCThread* new_thread;
char* name;
switch(type)
@ -40,6 +42,8 @@ PPCThread& PPCThreadManager::AddThread(PPCThreadType type)
void PPCThreadManager::RemoveThread(const u32 id)
{
std::lock_guard<std::mutex> lock(m_mtx_thread);
for(u32 i=0; i<m_threads.GetCount(); ++i)
{
if(m_threads[i].m_wait_thread_id == id)
@ -51,10 +55,19 @@ void PPCThreadManager::RemoveThread(const u32 id)
if(m_threads[i].GetId() != id) continue;
PPCThread* thr = &m_threads[i];
m_threads.RemoveFAt(i);
wxGetApp().SendDbgCommand(DID_REMOVE_THREAD, thr);
thr->Close();
delete thr;
if(thr->IsAlive())
{
thr->Close();
}
else
{
thr->Close();
delete thr;
}
m_threads.RemoveFAt(i);
i--;
}