mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
fix stepping a little better than last time
This commit is contained in:
parent
8bf8c7e6e9
commit
f179bd4cd7
3 changed files with 7 additions and 4 deletions
|
@ -52,10 +52,11 @@ void ThreadBase::Start()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadBase::Stop(bool wait)
|
void ThreadBase::Stop(bool wait, bool send_destroy)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(m_main_mutex);
|
std::lock_guard<std::mutex> lock(m_main_mutex);
|
||||||
|
|
||||||
|
if (send_destroy)
|
||||||
m_destroy = true;
|
m_destroy = true;
|
||||||
|
|
||||||
if(!m_executor)
|
if(!m_executor)
|
||||||
|
|
|
@ -41,7 +41,7 @@ protected:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void Start();
|
void Start();
|
||||||
void Stop(bool wait = true);
|
void Stop(bool wait = true, bool send_destroy = true);
|
||||||
|
|
||||||
bool Join() const;
|
bool Join() const;
|
||||||
bool IsAlive() const;
|
bool IsAlive() const;
|
||||||
|
|
|
@ -284,8 +284,10 @@ void CPUThread::ExecOnce()
|
||||||
#ifndef QT_UI
|
#ifndef QT_UI
|
||||||
wxGetApp().SendDbgCommand(DID_EXEC_THREAD, this);
|
wxGetApp().SendDbgCommand(DID_EXEC_THREAD, this);
|
||||||
#endif
|
#endif
|
||||||
|
m_status = Running;
|
||||||
ThreadBase::Start();
|
ThreadBase::Start();
|
||||||
ThreadBase::Stop();
|
ThreadBase::Stop(true,false);
|
||||||
|
m_status = Paused;
|
||||||
#ifndef QT_UI
|
#ifndef QT_UI
|
||||||
wxGetApp().SendDbgCommand(DID_PAUSE_THREAD, this);
|
wxGetApp().SendDbgCommand(DID_PAUSE_THREAD, this);
|
||||||
wxGetApp().SendDbgCommand(DID_PAUSED_THREAD, this);
|
wxGetApp().SendDbgCommand(DID_PAUSED_THREAD, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue