Solution for handling boost::thread with member functions
I'm using VC++ 2010 with Boost 1.43.
I've just created a class that uses winsock to handle network communication. Now there's a method called "fillQueue" which is defined like this:
Code:
void fillQueue(NetworkQueueTS& nq);
Problem is, the method enters an infinite while loop which fills the NetworkQueue with data. So it needs to be in an extra thread. The NetworkQueue class itself is already thread...