|
-
July 6th, 2011, 05:52 AM
#1
C++0x thread and std::future
Hello,
I have a question on C++0x thread.
It is possible get an std::future<> on an object std::thread<> after the thread has already been created normally (with a simple new thread (myThreadCode))?
I'm not making my thread with std::async(), which immediately returns a std::future<>.
Example:
std::thread myThread = new std::thread(myThreadCode);
//Can I here obtain a std::future on myThread object?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|