summaryrefslogtreecommitdiffstats
path: root/src/lib/asiolink/interval_timer.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2015-09-02 21:15:14 +0200
committerFrancis Dupont <fdupont@isc.org>2015-09-02 21:15:14 +0200
commit68e83d82ca5b38908d6b903ea49a8adef88b6336 (patch)
treed58de5e7edc66eb40beb61eba481e38bc4c651c2 /src/lib/asiolink/interval_timer.cc
parent[4009] Added temporary -lboost_system to link cc (diff)
downloadkea-68e83d82ca5b38908d6b903ea49a8adef88b6336.tar.xz
kea-68e83d82ca5b38908d6b903ea49a8adef88b6336.zip
[4009] error_ and system_code in system (vs asio) namespace
Diffstat (limited to 'src/lib/asiolink/interval_timer.cc')
-rw-r--r--src/lib/asiolink/interval_timer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/asiolink/interval_timer.cc b/src/lib/asiolink/interval_timer.cc
index 317a61ac03..68f5a791e5 100644
--- a/src/lib/asiolink/interval_timer.cc
+++ b/src/lib/asiolink/interval_timer.cc
@@ -47,7 +47,7 @@ public:
void setup(const IntervalTimer::Callback& cbfunc, const long interval,
const IntervalTimer::Mode& interval_mode
= IntervalTimer::REPEATING);
- void callback(const boost::asio::error_code& error);
+ void callback(const boost::system::error_code& error);
void cancel() {
timer_.cancel();
interval_ = 0;
@@ -114,7 +114,7 @@ IntervalTimerImpl::update() {
timer_.async_wait(boost::bind(&IntervalTimerImpl::callback,
shared_from_this(),
boost::asio::placeholders::error));
- } catch (const boost::asio::system_error& e) {
+ } catch (const boost::system::system_error& e) {
isc_throw(isc::Unexpected, "Failed to update timer: " << e.what());
} catch (const boost::bad_weak_ptr&) {
// Can't happen. It means a severe internal bug.
@@ -123,7 +123,7 @@ IntervalTimerImpl::update() {
}
void
-IntervalTimerImpl::callback(const boost::asio::error_code& ec) {
+IntervalTimerImpl::callback(const boost::system::error_code& ec) {
assert(interval_ != INVALIDATED_INTERVAL);
if (interval_ == 0 || ec) {
// timer has been canceled. Do nothing.