Home | History | Annotate | Download | only in thread.timedmutex.class

Lines Matching refs:Clock

14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
24 typedef std::chrono::steady_clock Clock;
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now();
33 assert(m.try_lock_until(Clock::now() + ms(300)) == true);
34 time_point t1 = Clock::now();
42 time_point t0 = Clock::now();
43 assert(m.try_lock_until(Clock::now() + ms(250)) == false);
44 time_point t1 = Clock::now();