$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Race condition with Boost::Thread
From: Ilya Sokolov (ilyasokol_at_[hidden])
Date: 2009-07-30 07:33:59
Rob Yull wrote:
> WorkerThread()
> {
> m_Thread = boost::thread(boost::bind(&WorkerThread::run, boost::ref(this)));
It should not compile, you need
m_Thread = boost::thread(boost::bind(&WorkerThread::run, this));
or simply
m_Thread = boost::thread(&WorkerThread::run, this);
> m_Running = true;
> }