Replace a bad function

This commit is contained in:
Henrik Rydgård 2024-12-03 20:33:12 +01:00
parent 9f344be824
commit 0f97578a35
6 changed files with 3 additions and 15 deletions

View file

@ -93,10 +93,6 @@ private:
bool enabled_ = false;
};
// TODO: A simple buffered log that can be used to display the log in-window
// on Android etc.
// class BufferedLogListener { ... }
struct LogChannel {
char m_shortName[32]{};
LogLevel level;

View file

@ -149,13 +149,6 @@ void Core_WaitInactive() {
}
}
void Core_WaitInactive(int milliseconds) {
if (Core_IsActive() && !GPUStepping::IsStepping()) {
std::unique_lock<std::mutex> guard(m_hInactiveMutex);
m_InactiveCond.wait_for(guard, std::chrono::milliseconds(milliseconds));
}
}
void Core_SetPowerSaving(bool mode) {
powerSaving = mode;
}

View file

@ -96,7 +96,6 @@ bool Core_IsInactive();
// Warning: these three are only used on Windows - debugger integration.
void Core_StateProcessed();
void Core_WaitInactive();
void Core_WaitInactive(int milliseconds);
void Core_SetPowerSaving(bool mode);
bool Core_GetPowerSaving();

View file

@ -626,7 +626,7 @@ void BreakpointManager::Update(u32 addr) {
bool resume = false;
if (Core_IsStepping() == false) {
Core_Break("cpu.breakpoint.update", addr);
Core_WaitInactive(200);
Core_WaitInactive();
resume = true;
}

View file

@ -302,7 +302,7 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam) {
if (isRunning)
{
Core_Break("cpu.breakpoint.add", 0);
Core_WaitInactive(200);
Core_WaitInactive();
}
BreakpointWindow bpw(m_hDlg,cpu);

View file

@ -353,7 +353,7 @@ void MainThreadFunc() {
// Process the shutdown. Without this, non-GL delays 800ms on shutdown.
Core_Run(g_graphicsContext);
}
Core_WaitInactive(800);
Core_WaitInactive();
g_inLoop = false;