31 Jan
2011
31 Jan
'11
12:33 p.m.
boost::thread thrd(boost::bind(&myioTCPLTE,TCPmsg))
function myioTCPLTE return a string value, bu i dont now how to get it to store in a different variable from the main code!! Could anyone help me? thanks
Thread function runs in different thread, asynchronously, so where and
when do you mean to get its return value?
You can take a look at the "future" concept:
http://www.boost.org/doc/libs/1_45_0/doc/html/thread/synchronization.html#th...
Quoting from there:
<