MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / setTimeIfNotSet

Method setTimeIfNotSet

source/MRViewer/MRAsyncTimer.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14bool AsyncTimer::setTimeIfNotSet( const std::chrono::time_point<std::chrono::system_clock> & time )
15{
16 std::unique_lock lock( mutex_ );
17 if ( !time_ )
18 {
19 time_ = time;
20 cvar_.notify_one();
21 return true;
22 }
23 return false;
24}
25
26void AsyncTimer::resetTime()
27{

Callers 1

requestIfNotSetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected