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
|
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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue