Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Asio] defer, dispatch and post differences?
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2018-01-05 09:52:33


On 5 January 2018 at 10:10, Richard Hodges via Boost-users <
boost-users_at_[hidden]> wrote:

> *post* used to cause the handler to be executed some time in the future
> on a thread associated with the executor. It was guaranteed not to happen
> immediately.
> *dispatch* used to:
> a. if called by a thread currently associated with the executor, cause
> the handler to happen now.
> b. otherwise behave as per post.
>
> Has this really changed, or does the documentation have an error?
>
>
Although it is not supposed to be up to date, I think the description given
in the documentation of the executor library
that was proposed by the ASIO author is probably the best to understand the
difference between these:
https://github.com/chriskohlhoff/executors

I don't know if there is a difference with the Network TS.

A. Joël Lamotte



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