
17 Feb
2009
17 Feb
'09
5:56 p.m.
vicente.botet wrote:
However, I can find useful a future returning "int", just because main returns int and a process could spawn other processes and obtain futures to them (Boost.Process child is a an example of this approach).
Yes, I see but the future needed in this case will be internal to the spawning process, isnt't it?
Yes, ownership of thread futures can be passed to other threads but I don't see this useful/possible for processes, we could duplicate process handles, but I don't see handles could be sharable. Maybe PIDs might be placed in shared memory and futures could be made of them. Regards, Ion