Scope classes due to VC 9 being different from GCC.
Use TIME_UTC_ on Boost 1.50 and later.
}
void yf::FrontendNet::ZAssocServer::set_thread_pool(
- ThreadPoolSocketObserver *observer)
+ mp::ThreadPoolSocketObserver *observer)
{
m_thread_pool_observer = observer;
}
m_obs->deleteObserver(this);
}
-void yf::FrontendNet::process(Package &package) const
+void yf::FrontendNet::process(mp::Package &package) const
{
if (m_p->az == 0)
return;
while (true)
{
boost::xtime xt;
- boost::xtime_get(&xt, boost::TIME_UTC);
+ boost::xtime_get(&xt,
+#if BOOST_VERSION >= 105000
+ boost::TIME_UTC_
+#else
+ boost::TIME_UTC
+#endif
+ );
xt.sec += m_session_ttl / 3;
boost::thread::sleep(xt);
return 0;
}
boost::xtime xt;
- xtime_get(&xt, boost::TIME_UTC);
+ xtime_get(&xt,
+#if BOOST_VERSION >= 105000
+ boost::TIME_UTC_
+#else
+ boost::TIME_UTC
+#endif
+ );
xt.sec += 15;
if (!m_cond_session_ready.timed_wait(lock, xt))