Skip to content

Commit

Permalink
Get rid of our own silly reimplementation of std::thread
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Feb 27, 2017
1 parent 5de190a commit 50be4e7
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 355 deletions.
3 changes: 2 additions & 1 deletion Core/Dialog/PSPSaveDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.

#include <thread>

#include "i18n/i18n.h"
#include "thread/thread.h"
#include "thread/threadutil.h"

#include "Common/ChunkFile.h"
Expand Down
3 changes: 2 additions & 1 deletion Core/Dialog/PSPSaveDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

#pragma once

#include "thread/thread.h"
#include <thread>

#include "base/mutex.h"
#include "Core/Dialog/PSPDialog.h"
#include "Core/Dialog/SavedataParam.h"
Expand Down
6 changes: 4 additions & 2 deletions Core/FileLoaders/CachingFileLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.

#include <string.h>
#include "thread/thread.h"
#include <cstring>
#include <thread>
#include <algorithm>

#include "thread/threadutil.h"
#include "base/timeutil.h"
#include "Core/FileLoaders/CachingFileLoader.h"
Expand Down
5 changes: 3 additions & 2 deletions Core/FileLoaders/RamCachingFileLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.

#include <string.h>
#include <algorithm>
#include <thread>
#include <cstring>
#include "base/timeutil.h"
#include "thread/thread.h"
#include "thread/threadutil.h"
#include "Core/FileLoaders/RamCachingFileLoader.h"

Expand Down
3 changes: 2 additions & 1 deletion Core/HLE/proAdhoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

#pragma once

#include <thread>

#include "base/timeutil.h"
#include "base/mutex.h"
#include "thread/thread.h"
#include "net/resolve.h"
#include "Common/ChunkFile.h"

Expand Down
2 changes: 1 addition & 1 deletion Core/HLE/sceIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

#include <cstdlib>
#include <set>
#include <thread>

#include "thread/thread.h"
#include "thread/threadutil.h"
#include "profiler/profiler.h"

Expand Down
2 changes: 1 addition & 1 deletion Core/HLE/sceSas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

#include <cstdlib>
#include <functional>
#include <thread>

#include "base/basictypes.h"
#include "base/mutex.h"
#include "profiler/profiler.h"
#include "thread/thread.h"
#include "thread/threadutil.h"
#include "Common/Log.h"
#include "Core/Config.h"
Expand Down
3 changes: 2 additions & 1 deletion Core/Reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.

#include <thread>

#include "Core/Reporting.h"

#include "Common/CPUDetect.h"
Expand All @@ -38,7 +40,6 @@

#include "base/stringutil.h"
#include "base/buffer.h"
#include "thread/thread.h"
#include "thread/threadutil.h"
#include "file/zip_read.h"

Expand Down
2 changes: 1 addition & 1 deletion Core/SaveState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

#include <algorithm>
#include <vector>
#include <thread>

#include "base/mutex.h"
#include "base/timeutil.h"
#include "i18n/i18n.h"
#include "thread/thread.h"
#include "thread/threadutil.h"

#include "Common/FileUtil.h"
Expand Down
2 changes: 1 addition & 1 deletion Core/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#include <string>
#include <codecvt>
#endif
#include <thread>

#include "math/math_util.h"
#include "thread/thread.h"
#include "thread/threadutil.h"
#include "base/mutex.h"
#include "util/text/utf8.h"
Expand Down
2 changes: 1 addition & 1 deletion Core/Util/GameManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
#include <algorithm>
#include <set>
#include <cstring>
#include <thread>

#include "file/file_util.h"
#ifdef SHARED_LIBZIP
#include <zip.h>
#else
#include "ext/libzip/zip.h"
#endif
#include "thread/thread.h"
#include "util/text/utf8.h"

#include "Common/Log.h"
Expand Down
2 changes: 1 addition & 1 deletion Core/Util/GameManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#pragma once

#include "thread/thread.h"
#include <thread>
#include "net/http_client.h"

class GameManager {
Expand Down
2 changes: 1 addition & 1 deletion UI/NativeApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <algorithm>
#endif
#include <memory>
#include <thread>

#if defined(_WIN32)
#include "Windows/DSoundStream.h"
Expand All @@ -46,7 +47,6 @@
#include "base/NativeApp.h"
#include "file/vfs.h"
#include "file/zip_read.h"
#include "thread/thread.h"
#include "net/http_client.h"
#include "gfx_es2/draw_text.h"
#include "gfx_es2/gpu_features.h"
Expand Down
4 changes: 3 additions & 1 deletion UI/RemoteISOScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.

#include <algorithm>
#include <thread>

#include "base/timeutil.h"
#include "ext/vjson/json.h"
#include "file/fd_util.h"
Expand All @@ -23,7 +26,6 @@
#include "net/http_server.h"
#include "net/resolve.h"
#include "net/sinks.h"
#include "thread/thread.h"
#include "thread/threadutil.h"
#include "Common/Common.h"
#include "Common/FileUtil.h"
Expand Down
2 changes: 1 addition & 1 deletion Windows/InputDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.

#include <list>
#include <thread>
#include <memory>
#include "base/mutex.h"
#include "input/input_state.h"
#include "thread/thread.h"
#include "thread/threadutil.h"
#include "Core/Config.h"
#include "Core/Host.h"
Expand Down
2 changes: 1 addition & 1 deletion Windows/W32Util/ShellUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include "stdafx.h"

#include <functional>
#include <thread>

#include "thread/thread.h"
#include "util/text/utf8.h"
#include "ShellUtil.h"
#include "CommDlg.h"
Expand Down
3 changes: 1 addition & 2 deletions Windows/W32Util/ShellUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

#include <string>
#include <vector>
#include "thread/thread.h"

#include <thread>

namespace W32Util
{
Expand Down
1 change: 0 additions & 1 deletion ext/native/native.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@
<ClInclude Include="thin3d\thin3d.h" />
<ClInclude Include="thread\executor.h" />
<ClInclude Include="thread\prioritizedworkqueue.h" />
<ClInclude Include="thread\thread.h" />
<ClInclude Include="thread\threadpool.h" />
<ClInclude Include="thread\threadutil.h" />
<ClInclude Include="ui\screen.h" />
Expand Down
3 changes: 0 additions & 3 deletions ext/native/native.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@
<ClInclude Include="thread\prioritizedworkqueue.h">
<Filter>thread</Filter>
</ClInclude>
<ClInclude Include="thread\thread.h">
<Filter>thread</Filter>
</ClInclude>
<ClInclude Include="thread\threadutil.h">
<Filter>thread</Filter>
</ClInclude>
Expand Down
2 changes: 1 addition & 1 deletion ext/native/net/http_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include <functional>
#include <memory>
#include <thread>

#include "base/basictypes.h"
#include "base/buffer.h"
#include "thread/thread.h"

#ifdef _WIN32
#ifndef NOMINMAX
Expand Down
2 changes: 1 addition & 1 deletion ext/native/thread/prioritizedworkqueue.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <functional>
#include <thread>

#include "base/logging.h"
#include "base/timeutil.h"
#include "thread/thread.h"
#include "thread/prioritizedworkqueue.h"

PrioritizedWorkQueue::~PrioritizedWorkQueue() {
Expand Down
Loading

0 comments on commit 50be4e7

Please sign in to comment.