Boost logo

Boost Users :

Subject: Re: [Boost-users] quick threading query
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2013-07-15 14:27:34


Sean Farrow wrote
> Hi all,
>
> I have a quick threading query.
> I'm in the process of rewriting an application to take advantage of
> concurrency.
> This application is cross-platform so I'm looking at the boost threading
> library to solve the issue.
> When the window is created I'm creating a thread, then when the user
> chooses to quit I need to notify the created thread to stop running.
> Would a future do the job, if this is the case where should this be stored
> in the class that represents the window or in the class that represents
> the thread, I'm really not wanting to store this globally.

boost::thread::interrupt() allows you to interrupt a thread.

Vicente

--
View this message in context: http://boost.2283326.n4.nabble.com/quick-threading-query-tp4649675p4649713.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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