From 6fd227610ffa8ce002ce9487c7d0ff15e0bd3734 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 25 Oct 2024 18:29:31 +0200 Subject: [PATCH] daemonizer: replace boost chrono/thread with std lib --- src/daemonizer/CMakeLists.txt | 1 - src/daemonizer/windows_service.cpp | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/daemonizer/CMakeLists.txt b/src/daemonizer/CMakeLists.txt index 9175d28c2..9027d5f11 100644 --- a/src/daemonizer/CMakeLists.txt +++ b/src/daemonizer/CMakeLists.txt @@ -67,7 +67,6 @@ monero_add_library(daemonizer target_link_libraries(daemonizer PUBLIC common - ${Boost_CHRONO_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} PRIVATE diff --git a/src/daemonizer/windows_service.cpp b/src/daemonizer/windows_service.cpp index 335d01814..77d3617c8 100644 --- a/src/daemonizer/windows_service.cpp +++ b/src/daemonizer/windows_service.cpp @@ -26,9 +26,6 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#include -#include - #undef UNICODE #undef _UNICODE @@ -103,8 +100,8 @@ namespace { // to allow the user to read any output. void pause_to_display_admin_window_messages() { - boost::chrono::milliseconds how_long{1500}; - boost::this_thread::sleep_for(how_long); + std::chrono::milliseconds how_long{1500}; + std::this_thread::sleep_for(how_long); } }