diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-05-08 12:11:38 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-05-08 13:25:11 +0200 |
commit | 0989a657c25476f2ab80448b094ef0dd5c9c0beb (patch) | |
tree | bee4903f318432157962239b671d7af09f3653a3 /src/frp.cpp | |
parent | 567156b05183cc63aedbf57c03f26e0eaf43a39e (diff) |
FRP: functions to retrieve and compare BhvTime
Diffstat (limited to 'src/frp.cpp')
-rw-r--r-- | src/frp.cpp | 5 |
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); |