2015-08-23 4:08 GMT+03:00 Ahmed Charles
The formal review of the Boost.AFIO library starts, August 21st and ends on Monday August 31st.
Hi,
I've started reading the tutorials and a bunch of thoughts rise in my head:
1) "Hello World, asynchronously!"
This looks really good and impressive. However the
`afio::current_dispatcher_guard h(afio::make_dispatcher().get());` code
seems like a boiler plate code that is used all around the examples. Could
it be simplified? For example adding a default constructor to the
`current_dispatcher_guard` will significaly reduce typing.
Also `afio::future<>` misses destructor description. This is essential,
because unfortunately in C++ we have different behavior for futures: future
returned by `std::async` blocks on destruction, default `std::future`
abandons the shared state and does not block.
I've failed to find a description for `when_all_p` function in reference
section. Is it documented?
2) "A less toy example: Concatenating files"
That's example not nice in a multiple ways. First of all, it combines
explicit usage of `boost::afio::dispatcher` with implicit
`current_dispatcher_guard`. It would be good to have single way of dealing
with dispatchers in example. `current_dispatcher_guard` seems more simple
(and that's what i like in examples :) )
`atomic