mirror of https://github.com/oxen-io/oxen-core.git
f3fdcb1fbc
This replaces the horrible, horrible, badly misused templated once_a_time_seconds and once_a_time_milliseconds with a `periodic_task` that works the same way but takes parameters as constructor arguments instead of template parameters. It also makes various small improvements: - uses std::chrono::steady_clock instead of ifdef'ing platform dependent timer code. - takes a std::chrono duration rather than a template integer and scaling parameter. - timers can be reset to trigger on the next invocation, and this is thread-safe. - timer intervals can be changed at run-time. This all then gets used to reset the proof timer immediately upon receiving a ping (initially or after expiring) from storage server and lokinet so that we send proofs out faster. |
||
---|---|---|
.. | ||
brew | ||
codefresh | ||
depends | ||
epee | ||
fuzz_testing | ||
gitian | ||
rlwrap | ||
snap | ||
valgrind | ||
CMakeLists.txt |