[DEV] add v1.76.0

This commit is contained in:
2021-10-05 21:37:46 +02:00
parent a97e9ae7d4
commit d0115b733d
45133 changed files with 4744437 additions and 1026325 deletions

View File

@@ -18,6 +18,7 @@
#include <boost/io/ios_state.hpp>
#include <boost/throw_exception.hpp>
#include <boost/cerrno.hpp>
#include <boost/predef.h>
#include <cstring>
#include <sstream>
#include <cassert>
@@ -33,7 +34,6 @@
using boost::timer::nanosecond_type;
using boost::timer::cpu_times;
using boost::system::error_code;
namespace
{
@@ -94,24 +94,25 @@ namespace
}
# if defined(BOOST_POSIX_API)
boost::int_least64_t tick_factor_()
{
boost::int_least64_t tf = ::sysconf( _SC_CLK_TCK );
if( tf <= 0 ) return -1;
tf = INT64_C(1000000000) / tf; // compute factor
if( tf == 0 ) tf = -1;
return tf;
}
boost::int_least64_t tick_factor() // multiplier to convert ticks
// to nanoseconds; -1 if unknown
{
static boost::int_least64_t tick_factor = 0;
if (!tick_factor)
{
if ((tick_factor = ::sysconf(_SC_CLK_TCK)) <= 0)
tick_factor = -1;
else
{
assert(tick_factor <= INT64_C(1000000000)); // logic doesn't handle large ticks
tick_factor = INT64_C(1000000000) / tick_factor; // compute factor
if (!tick_factor)
tick_factor = -1;
}
}
return tick_factor;
static boost::int_least64_t tf = tick_factor_();
return tf;
}
# endif
void get_cpu_times(boost::timer::cpu_times& current)
@@ -122,6 +123,7 @@ namespace
# if defined(BOOST_WINDOWS_API)
# if BOOST_PLAT_WINDOWS_DESKTOP || defined(__CYGWIN__)
FILETIME creation, exit;
if (::GetProcessTimes(::GetCurrentProcess(), &creation, &exit,
(LPFILETIME)&current.system, (LPFILETIME)&current.user))
@@ -130,6 +132,7 @@ namespace
current.system *= 100;
}
else
# endif
{
current.system = current.user = boost::timer::nanosecond_type(-1);
}