Boost logo

Boost :

From: Iain Hanson (Iain.Hanson_at_[hidden])
Date: 2005-04-22 05:50:04

On Fri, 2005-04-22 at 12:42 +0300, Peter Dimov wrote:

> async_read should not take a buffer; instead, the callback should receive a
> pointer to a buffer managed by the library that is guaranteed to be valid
> for the duration of the callback. (Not by default, at least.)
> async_write (by default) should not assume that the passed buffer stays
> valid after async_write returns.
> Rationale: buffer management is a pain with multiple callbacks active ;-)
This would give a significant performance hit as there will now be two
copies of the data. The 1st from kennel space to the library and the
second in the callback from the library to the user.


Boost list run by bdawes at, gregod at, cpdaniel at, john at