summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2021-05-08 12:11:38 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2021-05-08 13:25:11 +0200
commit0989a657c25476f2ab80448b094ef0dd5c9c0beb (patch)
treebee4903f318432157962239b671d7af09f3653a3 /src
parent567156b05183cc63aedbf57c03f26e0eaf43a39e (diff)
FRP: functions to retrieve and compare BhvTime
Diffstat (limited to 'src')
-rw-r--r--src/frp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/frp.cpp b/src/frp.cpp
index 142fcd4..a16950c 100644
--- a/src/frp.cpp
+++ b/src/frp.cpp
@@ -10,13 +10,16 @@ using std::move;
using std::mutex;
using std::nullopt;
using std::unique_lock;
-using std::weak_ptr;
mutex bhvTimeMutex;
condition_variable bhvTimeCond;
bool bhvTimeRunning = false;
uint64_t bhvTimeLast = 0;
+BhvTime::BhvTime(const BhvCurTime & ct):
+ BhvTime(ct.time())
+{}
+
BhvCurTime::BhvCurTime()
{
unique_lock lock(bhvTimeMutex);