Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-03-09 10:15:07


________________________________________
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Sliwa,
Przemyslaw (London)
Sent: Thursday, March 09, 2006 9:47 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] How to retrieve a value from a thread

I would like to know if it is possible to retrieve a value returned from
a function which is called by a thread.

[Nat] Is this thread running continuously, doing other things? Or did
you start it for the purpose of calling that function, so that when the
function is done the thread terminates?

In Java, I've always kind of liked Doug Lea's FutureResult idiom:

http://gee.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/Future
Result.html

I don't know of anything similar in the existing library.


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