Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] are defer/dispatch/post identical?
From: Frédéric (ufospoke_at_[hidden])
Date: 2018-09-18 04:10:03


> dispatch is allowed (but not required) to execute the complete provided
> function (if in the correct context already) before returning to the caller.
>
> post is required to return to the caller immediately without directly
> starting execution of the method (although it might still start
> executing on another thread before it returns, depending on the executor).
>
> defer is mostly like post but it will generally prefer to wait until the
> current method finishes and then execute on the same thread, rather than
> starting immediately on a different thread.

Thank you very much, that's clear now.

F


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