Boost Users :
Subject: Re: [Boost-users] [asio] when to use io_service::post or deadline_timer::async_wait?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-03-11 06:19:29
> After reading the referece docs I got the impression that
> the only difference between io_service::post and deadline_timer::async_wait is the fact that the former triggers execution immediately (after the caller function returns?) while the latter waits until timer expires before execution of the function object.
io_service::post() asyncronously executes a functor in one the threads
deadline_timer::async_wait() ansyncronously waits until the timer is
expired or cancelled, then executes its handler in one the threads
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net