Update of /cvsroot/boost/boost/boost/asio
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6057/boost/asio
Modified Files:
deadline_timer_service.hpp time_traits.hpp
Log Message:
Maintain separate timer queues for each time traits type.
Index: deadline_timer_service.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/deadline_timer_service.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- deadline_timer_service.hpp 14 Jun 2006 22:26:30 -0000 1.1
+++ deadline_timer_service.hpp 26 Jul 2006 11:23:25 -0000 1.2
@@ -24,10 +24,10 @@
#include <boost/asio/io_service.hpp>
#include <boost/asio/time_traits.hpp>
+#include <boost/asio/detail/deadline_timer_service.hpp>
#include <boost/asio/detail/epoll_reactor.hpp>
#include <boost/asio/detail/kqueue_reactor.hpp>
#include <boost/asio/detail/select_reactor.hpp>
-#include <boost/asio/detail/reactive_deadline_timer_service.hpp>
namespace boost {
namespace asio {
@@ -51,16 +51,16 @@
private:
// The type of the platform-specific implementation.
#if defined(BOOST_ASIO_HAS_IOCP)
- typedef detail::reactive_deadline_timer_service<
+ typedef detail::deadline_timer_service<
traits_type, detail::select_reactor<true> > service_impl_type;
#elif defined(BOOST_ASIO_HAS_EPOLL)
- typedef detail::reactive_deadline_timer_service<
+ typedef detail::deadline_timer_service<
traits_type, detail::epoll_reactor<false> > service_impl_type;
#elif defined(BOOST_ASIO_HAS_KQUEUE)
- typedef detail::reactive_deadline_timer_service<
+ typedef detail::deadline_timer_service<
traits_type, detail::kqueue_reactor<false> > service_impl_type;
#else
- typedef detail::reactive_deadline_timer_service<
+ typedef detail::deadline_timer_service<
traits_type, detail::select_reactor<false> > service_impl_type;
#endif
Index: time_traits.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/time_traits.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- time_traits.hpp 14 Jun 2006 22:26:30 -0000 1.1
+++ time_traits.hpp 26 Jul 2006 11:23:25 -0000 1.2
@@ -58,16 +58,17 @@
return t1 - t2;
}
- /// Convert to UTC in the posix time type.
- static boost::posix_time::ptime to_utc(const time_type& t)
+ /// Test whether one time is less than another.
+ static bool less_than(const time_type& t1, const time_type& t2)
{
- return t;
+ return t1 < t2;
}
- /// Convert from UTC in the posix time type.
- static time_type from_utc(const boost::posix_time::ptime& t)
+ /// Convert to POSIX duration type.
+ static boost::posix_time::time_duration to_posix_duration(
+ const duration_type& d)
{
- return t;
+ return d;
}
};
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs