Skip to content

Commit

Permalink
Add missing includes. Remove some more unnecessary #ifdef _DEBUG chec…
Browse files Browse the repository at this point in the history
…ks - the debugger is supposed to work in release mode too.
  • Loading branch information
hrydgard committed Dec 20, 2017
1 parent 740d050 commit 4f1e0de
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Core/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void Core_RunLoop(GraphicsContext *ctx) {
double diffTime = time_now_d() - startTime;
int sleepTime = (int)(1000.0 / 60.0) - (int)(diffTime * 1000.0);
if (sleepTime > 0)
Sleep(sleepTime);
sleep_ms(sleepTime);
if (!windowHidden) {
ctx->SwapBuffers();
}
Expand Down Expand Up @@ -292,11 +292,9 @@ void Core_Run(GraphicsContext *ctx) {
}

// wait for step command..
#if defined(_DEBUG)
host->UpdateDisassembly();
host->UpdateMemView();
host->SendCoreWait(true);
#endif

{
std::unique_lock<std::mutex> guard(m_hStepMutex);
Expand Down
1 change: 1 addition & 0 deletions Core/HLE/sceSas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <functional>
#include <thread>
#include <mutex>
#include <condition_variable>

#include "base/basictypes.h"
#include "profiler/profiler.h"
Expand Down
2 changes: 2 additions & 0 deletions Core/Reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.

#include <thread>
#include <mutex>
#include <condition_variable>

#include "Core/Reporting.h"

Expand Down
2 changes: 2 additions & 0 deletions Core/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
#include <string>
#include <codecvt>
#endif

#include <thread>
#include <mutex>
#include <condition_variable>

#include "math/math_util.h"
#include "thread/threadutil.h"
Expand Down
2 changes: 2 additions & 0 deletions UI/RemoteISOScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <algorithm>
#include <thread>
#include <mutex>
#include <condition_variable>

#include "base/timeutil.h"
#include "ext/vjson/json.h"
Expand Down
1 change: 1 addition & 0 deletions Windows/InputDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <thread>
#include <memory>
#include <mutex>
#include <condition_variable>

#include "input/input_state.h"
#include "thread/threadutil.h"
Expand Down
1 change: 1 addition & 0 deletions ext/native/thread/prioritizedworkqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <vector>
#include <limits>
#include <mutex>
#include <condition_variable>

#include "base/basictypes.h"
#include "thread/threadutil.h"
Expand Down

0 comments on commit 4f1e0de

Please sign in to comment.