fix(deps): replace libboost chrono and thread with standard chrono and thread (#1364)

Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
Era Dorta 2023-06-26 17:50:10 +02:00 committed by GitHub
commit ed74492e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 3 additions and 14 deletions

View file

@ -285,7 +285,6 @@ jobs:
libboost-locale1.71-dev \ libboost-locale1.71-dev \
libboost-log1.71-dev \ libboost-log1.71-dev \
libboost-regex1.71-dev \ libboost-regex1.71-dev \
libboost-thread1.71-dev \
libboost-program-options1.71-dev libboost-program-options1.71-dev
# Install cmake # Install cmake
@ -311,7 +310,6 @@ jobs:
libboost-filesystem-dev \ libboost-filesystem-dev \
libboost-locale-dev \ libboost-locale-dev \
libboost-log-dev \ libboost-log-dev \
libboost-thread-dev \
libboost-program-options-dev libboost-program-options-dev
fi fi

View file

@ -906,7 +906,6 @@ elseif(UNIX)
libboost-locale${Boost_VERSION}, \ libboost-locale${Boost_VERSION}, \
libboost-log${Boost_VERSION}, \ libboost-log${Boost_VERSION}, \
libboost-program-options${Boost_VERSION}, \ libboost-program-options${Boost_VERSION}, \
libboost-thread${Boost_VERSION}, \
libcap2, \ libcap2, \
libcurl4, \ libcurl4, \
libdrm2, \ libdrm2, \
@ -926,7 +925,6 @@ elseif(UNIX)
boost-locale >= ${Boost_VERSION}, \ boost-locale >= ${Boost_VERSION}, \
boost-log >= ${Boost_VERSION}, \ boost-log >= ${Boost_VERSION}, \
boost-program-options >= ${Boost_VERSION}, \ boost-program-options >= ${Boost_VERSION}, \
boost-thread >= ${Boost_VERSION}, \
libcap >= 2.22, \ libcap >= 2.22, \
libcurl >= 7.0, \ libcurl >= 7.0, \
libdrm >= 2.4.97, \ libdrm >= 2.4.97, \

View file

@ -38,7 +38,6 @@ apt-get install -y --no-install-recommends \
libboost-locale-dev=1.74.* \ libboost-locale-dev=1.74.* \
libboost-log-dev=1.74.* \ libboost-log-dev=1.74.* \
libboost-program-options-dev=1.74.* \ libboost-program-options-dev=1.74.* \
libboost-thread-dev=1.74.* \
libcap-dev \ libcap-dev \
libcurl4-openssl-dev \ libcurl4-openssl-dev \
libdrm-dev \ libdrm-dev \

View file

@ -40,7 +40,6 @@ apt-get install -y --no-install-recommends \
libboost-locale-dev=1.71.* \ libboost-locale-dev=1.71.* \
libboost-log-dev=1.71.* \ libboost-log-dev=1.71.* \
libboost-program-options-dev=1.71.* \ libboost-program-options-dev=1.71.* \
libboost-thread-dev=1.71.* \
libcap-dev \ libcap-dev \
libcurl4-openssl-dev \ libcurl4-openssl-dev \
libdrm-dev \ libdrm-dev \

View file

@ -39,7 +39,6 @@ apt-get install -y --no-install-recommends \
libboost-locale-dev=1.74.* \ libboost-locale-dev=1.74.* \
libboost-log-dev=1.74.* \ libboost-log-dev=1.74.* \
libboost-program-options-dev=1.74.* \ libboost-program-options-dev=1.74.* \
libboost-thread-dev=1.74.* \
libcap-dev \ libcap-dev \
libcurl4-openssl-dev \ libcurl4-openssl-dev \
libdrm-dev \ libdrm-dev \

View file

@ -19,7 +19,6 @@ Install Requirements
libboost-locale-dev \ libboost-locale-dev \
libboost-log-dev \ libboost-log-dev \
libboost-program-options-dev \ libboost-program-options-dev \
libboost-thread-dev \
libcap-dev \ # KMS libcap-dev \ # KMS
libcurl4-openssl-dev \ libcurl4-openssl-dev \
libdrm-dev \ # KMS libdrm-dev \ # KMS
@ -100,7 +99,6 @@ Install Requirements
libboost-filesystem-dev \ libboost-filesystem-dev \
libboost-locale-dev \ libboost-locale-dev \
libboost-log-dev \ libboost-log-dev \
libboost-thread-dev \
libboost-program-options-dev \ libboost-program-options-dev \
libcap-dev \ # KMS libcap-dev \ # KMS
libdrm-dev \ # KMS libdrm-dev \ # KMS
@ -149,7 +147,6 @@ Install Requirements
libboost-filesystem-dev \ libboost-filesystem-dev \
libboost-locale-dev \ libboost-locale-dev \
libboost-log-dev \ libboost-log-dev \
libboost-thread-dev \
libboost-program-options-dev \ libboost-program-options-dev \
libcap-dev \ # KMS libcap-dev \ # KMS
libdrm-dev \ # KMS libdrm-dev \ # KMS

View file

@ -10,6 +10,8 @@ extern "C" {
} }
#include <bitset> #include <bitset>
#include <chrono>
#include <thread>
#include <unordered_map> #include <unordered_map>
#include "config.h" #include "config.h"
@ -19,9 +21,6 @@ extern "C" {
#include "thread_pool.h" #include "thread_pool.h"
#include "utility.h" #include "utility.h"
#include <boost/chrono.hpp>
#include <boost/thread/thread.hpp>
using namespace std::literals; using namespace std::literals;
namespace input { namespace input {
@ -738,7 +737,7 @@ namespace input {
platf::gamepad(platf_input, gamepad.id, state); platf::gamepad(platf_input, gamepad.id, state);
// Sleep for a short time to allow the input to be detected // Sleep for a short time to allow the input to be detected
boost::this_thread::sleep_for(boost::chrono::milliseconds(100)); std::this_thread::sleep_for(std::chrono::milliseconds(100));
// Release Home button // Release Home button
state.buttonFlags &= ~platf::HOME; state.buttonFlags &= ~platf::HOME;