mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-25 17:04:04 +00:00
Merge pull request #4709 from FearlessTobi/port-2247
Port yuzu-emu/yuzu#2247: "common/thread_queue_list: Remove unnecessary dependency on boost"
This commit is contained in:
commit
4b6295ae68
2 changed files with 4 additions and 4 deletions
|
@ -107,7 +107,7 @@ endif()
|
||||||
|
|
||||||
create_target_directory_groups(common)
|
create_target_directory_groups(common)
|
||||||
|
|
||||||
target_link_libraries(common PUBLIC Boost::boost fmt microprofile)
|
target_link_libraries(common PUBLIC fmt microprofile)
|
||||||
if (ARCHITECTURE_x86_64)
|
if (ARCHITECTURE_x86_64)
|
||||||
target_link_libraries(common PRIVATE xbyak)
|
target_link_libraries(common PRIVATE xbyak)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <boost/range/algorithm_ext/erase.hpp>
|
|
||||||
|
|
||||||
namespace Common {
|
namespace Common {
|
||||||
|
|
||||||
|
@ -95,8 +94,9 @@ struct ThreadQueueList {
|
||||||
}
|
}
|
||||||
|
|
||||||
void remove(Priority priority, const T& thread_id) {
|
void remove(Priority priority, const T& thread_id) {
|
||||||
Queue* cur = &queues[priority];
|
Queue* const cur = &queues[priority];
|
||||||
boost::remove_erase(cur->data, thread_id);
|
const auto iter = std::remove(cur->data.begin(), cur->data.end(), thread_id);
|
||||||
|
cur->data.erase(iter, cur->data.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
void rotate(Priority priority) {
|
void rotate(Priority priority) {
|
||||||
|
|
Loading…
Reference in a new issue