From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-02-22 09:41:39
the example at the end of the mutex documentation doesn't compile. The problem is the line thrds.create_thread(&change_count, 0). This won't work because create_thread() only takes the address of the thread function as an argument. This can easily be fixed by removing the second argument as it is not needed.
As another question, how do I pass an argument to the thread function when using thread_group::create_thread()?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk