Hi boost-users,
I'm new in the mailing list, so I hope, that I'm right here and you can
help me.
I want to start a ThreadClass that includes some boost::mutex variables,
but it doesn't work because of the "noncopyable" definition of the
mutex-class.
*******************MyClass*******************
......
class OutputProcessor_C
{
public:
ClientOutputProcessor_C();
virtual ~ClientOutputProcessor_C();
void operator()()
{
while( true )
{
boost::xtime wakeUpTime;
boost::xtime_get(&wakeUpTime, boost::TIME_UTC);
wakeUpTime.sec += ( 0.05 );
boost::thread::sleep( wakeUpTime );
Process();
}
}
protected:
void Process();
boost::mutex m_publishDataMutex;
......
*********************************************
*******************MyMain********************
......
int main(int argc, char* argv[])
{
// Classpointer
boost::shared_ptr