Re: [Boost-users] stopping a boost::thread

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

Got it! I was calling a function that was updating a UI object through a call to SendMessage! Of course, there was a deadlock.
participants (2)
-
Frank Hess
-
xargon