daemonizer: replace boost chrono/thread with std lib
This commit is contained in:
parent
893916ad09
commit
6fd227610f
|
@ -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
|
||||
|
|
|
@ -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 <boost/chrono/chrono.hpp>
|
||||
#include <boost/thread/thread.hpp>
|
||||
|
||||
#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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue