20 Mar
2009
20 Mar
'09
12:20 p.m.
But another problem is raised: when I receive 2 command one after other quickly, I miss the second, so...
Is there a method to launch a signal directly into another thread? Something like:
boost::thread(boost::bind(signal_OnData, ptrToObj))
I'm not sure I understand your issue, but anyway, in such kind of task you can consider using boost.asio. Using asio::io_service::post you can conveniently post functors between different threads, without the need for explicit locking.