Boost logo

Boost :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-03-13 15:14:35

Hash: SHA1

On Tuesday 13 March 2007 10:52 am, Jason Turner wrote:
> Thanks for the docs, let me know if there are any areas which you
> could see using some help.

The docs could use some help. In particular, an intro/tutorial type of
page. Or just a little example program that shows how a full active
object can be built would definitely help. The active object could
contain a few public active_function objects corresponding to the
"servant" object's public methods, and a private shared_ptr<scheduler>
(used by all the active_functions), and a private shared_ptr<servant> to
hold the servant object.

You might want to wait a few days though, as I'm currently in the process
of making a few changes to the API. I've switched to using the slot class
from thread_safe_signals for tracking, instead of boost::function +
shared_ptr<void>. I'm going to split a reference-counted "promise" class
out of the future class as suggested recently on this list, which is
responsible for setting the values that futures see. I'm also adding
support for forwarding exceptions from an active_function's underlying
function to the returned future based on Peter Dimov's exception_ptr.

- --
Version: GnuPG v1.4.1 (GNU/Linux)


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