diff options
| author | 2019-03-20 21:34:12 -0400 | |
|---|---|---|
| committer | 2019-03-20 21:34:12 -0400 | |
| commit | e8ff8a66b0980399a5ad9d54bba06a88b423ba62 (patch) | |
| tree | 9baf1ca48b65e63ffac2029734e9646c0a514601 /src | |
| parent | Merge pull request #2224 from lioncash/opus (diff) | |
| parent | common/thread_queue_list: Remove unnecessary dependency on boost (diff) | |
| download | yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.tar.gz yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.tar.xz yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.zip | |
Merge pull request #2247 from lioncash/include
common/thread_queue_list: Remove unnecessary dependency on boost
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/thread_queue_list.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 43ae8a9e7..fe6f78356 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -134,4 +134,4 @@ endif() | |||
| 134 | 134 | ||
| 135 | create_target_directory_groups(common) | 135 | create_target_directory_groups(common) |
| 136 | 136 | ||
| 137 | target_link_libraries(common PUBLIC Boost::boost fmt microprofile) | 137 | target_link_libraries(common PUBLIC fmt microprofile) |
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h index e7594db68..791f99a8c 100644 --- a/src/common/thread_queue_list.h +++ b/src/common/thread_queue_list.h | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <deque> | 8 | #include <deque> |
| 9 | #include <boost/range/algorithm_ext/erase.hpp> | ||
| 10 | 9 | ||
| 11 | namespace Common { | 10 | namespace Common { |
| 12 | 11 | ||
| @@ -111,8 +110,9 @@ struct ThreadQueueList { | |||
| 111 | } | 110 | } |
| 112 | 111 | ||
| 113 | void remove(Priority priority, const T& thread_id) { | 112 | void remove(Priority priority, const T& thread_id) { |
| 114 | Queue* cur = &queues[priority]; | 113 | Queue* const cur = &queues[priority]; |
| 115 | boost::remove_erase(cur->data, thread_id); | 114 | const auto iter = std::remove(cur->data.begin(), cur->data.end(), thread_id); |
| 115 | cur->data.erase(iter, cur->data.end()); | ||
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | void rotate(Priority priority) { | 118 | void rotate(Priority priority) { |