aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/misc_language.h
diff options
context:
space:
mode:
authormj-xmr <mjxmr@protonmail.com>2020-11-09 20:49:11 +0100
committermj-xmr <mjxmr@protonmail.com>2021-02-06 08:18:42 +0100
commitdc48de74e80140d90052c0ebdba31769edb34a0f (patch)
tree8a2755ab5fac911089995a5b1a338a8a1ba3cdcf /contrib/epee/include/misc_language.h
parentMerge pull request #7260 (diff)
downloadmonero-dc48de74e80140d90052c0ebdba31769edb34a0f.tar.xz
Reduce compilation time of epee/portable_storage.h
Diffstat (limited to '')
-rw-r--r--contrib/epee/include/misc_language.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/contrib/epee/include/misc_language.h b/contrib/epee/include/misc_language.h
index a04c63231..5ccfe6fcc 100644
--- a/contrib/epee/include/misc_language.h
+++ b/contrib/epee/include/misc_language.h
@@ -28,9 +28,11 @@
#pragma once
-#include <limits>
-#include <boost/thread.hpp>
#include <boost/utility/value_init.hpp>
+#include <boost/shared_ptr.hpp>
+#include <limits>
+#include <functional>
+#include <vector>
namespace epee
{
#define STD_TRY_BEGIN() try {
@@ -95,16 +97,7 @@ namespace misc_utils
return memcmp(&_Left, &_Right, sizeof(_Left)) < 0;
}
-
- inline
- bool sleep_no_w(long ms )
- {
- boost::this_thread::sleep(
- boost::get_system_time() +
- boost::posix_time::milliseconds( std::max<long>(ms,0) ) );
-
- return true;
- }
+ bool sleep_no_w(long ms );
template <typename T>
T get_mid(const T &a, const T &b)