From 0989a657c25476f2ab80448b094ef0dd5c9c0beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 8 May 2021 12:11:38 +0200 Subject: FRP: functions to retrieve and compare BhvTime --- src/frp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3