Boost logo

Boost Users :

From: Frank Hess (frank.hess_at_[hidden])
Date: 2006-02-06 17:18:55


On Monday 06 February 2006 04:37 pm, boost-users-request_at_[hidden]
wrote:
> Date: Mon, 6 Feb 2006 20:28:49 +0000 (UTC)
> From: xargon <pankaj.daga_at_[hidden]>
> Subject: [Boost-users] stopping a boost::thread
> To: boost-users_at_[hidden]
> Message-ID: <loom.20060206T212759-680_at_[hidden]>
> 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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net