
6 Feb
2006
6 Feb
'06
10:18 p.m.
On Monday 06 February 2006 04:37 pm, boost-users-request@lists.boost.org wrote:
Date: Mon, 6 Feb 2006 20:28:49 +0000 (UTC) From: xargon
Subject: [Boost-users] stopping a boost::thread To: boost-users@lists.boost.org Message-ID: Content-Type: text/plain; charset=us-ascii Hi everyone,
I am trying to use the boost multithreading library. I am having a problem as the join() function for the thread never returns. I am using a boolean variable to indicate when the thread should stop running. Here is basically a stub of what I am doing:
//........................................ bool m_RunThread = false;
It's because m_RunThread isn't volatile. -- Frank