Subject: [Boost-bugs] [Boost C++ Libraries] #4745: On Windows, timers that expire more than 5 minutes in the future may never complete
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-16 12:53:25
#4745: On Windows, timers that expire more than 5 minutes in the future may never
complete
------------------------------+---------------------------------------------
Reporter: chris_kohlhoff | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
The following program should print "done" after 5.5 minutes, but instead
runs indefinitely.
{{{
#include <boost/asio/io_service.hpp>
#include <boost/asio/deadline_timer.hpp>
#include <boost/bind.hpp>
#include <iostream>
void handler()
{
std::cout << "done" << std::endl;
}
int main()
{
boost::asio::io_service io_service;
boost::asio::deadline_timer timer(io_service);
timer.expires_from_now(boost::posix_time::seconds(330));
timer.async_wait(boost::bind(handler));
io_service.run();
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4745> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC