6 #ifndef TURI_SFRAME_UNFAIR_IO_SCHEDULER_HPP 7 #define TURI_SFRAME_UNFAIR_IO_SCHEDULER_HPP 11 #include <core/parallel/pthread_tools.hpp> 51 volatile bool m_lock_acquired =
false;
52 std::map<size_t, turi::conditional*> m_cond;
54 size_t m_previous_owner_priority = 0;
55 int m_previous_sleep_interval = 0;
56 double m_previous_time_for_epoch = 0;
57 int m_current_sleep_interval = 50;
58 double m_time_for_epoch = 0;
59 size_t m_epoch_counter = 0;
60 bool m_initial =
true;
A simple class that can be used for benchmarking/timing up to microsecond resolution.