MCPcopy Create free account
hub / github.com/MariaDB/server / set_time

Method set_time

tpool/tpool_win.cc:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 m_ptp_timer= CreateThreadpoolTimer(timer_callback, this, &pool.m_env);
102 }
103 void set_time(int initial_delay_ms, int period_ms) override
104 {
105 std::unique_lock<std::mutex> lk(m_shutdown_mtx);
106 if (!m_on)
107 return;
108 long long initial_delay = -10000LL * initial_delay_ms;
109 SetThreadpoolTimer(m_ptp_timer, NULL, 0, 0);
110 SetThreadpoolTimer(m_ptp_timer, (PFILETIME)&initial_delay, 0, 100);
111 m_period = period_ms;
112 }
113 void disarm() override
114 {
115 std::unique_lock<std::mutex> lk(m_shutdown_mtx);

Callers 1

timer_callbackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected