daemonizer: replace boost chrono/thread with std lib

This commit is contained in:
tobtoht 2024-10-25 18:29:31 +02:00
parent 893916ad09
commit 6fd227610f
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472
2 changed files with 2 additions and 6 deletions

View File

@ -67,7 +67,6 @@ monero_add_library(daemonizer
target_link_libraries(daemonizer target_link_libraries(daemonizer
PUBLIC PUBLIC
common common
${Boost_CHRONO_LIBRARY}
${Boost_FILESYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}
PRIVATE PRIVATE

View File

@ -26,9 +26,6 @@
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // 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. // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <boost/chrono/chrono.hpp>
#include <boost/thread/thread.hpp>
#undef UNICODE #undef UNICODE
#undef _UNICODE #undef _UNICODE
@ -103,8 +100,8 @@ namespace {
// to allow the user to read any output. // to allow the user to read any output.
void pause_to_display_admin_window_messages() void pause_to_display_admin_window_messages()
{ {
boost::chrono::milliseconds how_long{1500}; std::chrono::milliseconds how_long{1500};
boost::this_thread::sleep_for(how_long); std::this_thread::sleep_for(how_long);
} }
} }