quick threading query
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. Any help appreciated. Cheers Sean.
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.h... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (2)
-
Sean Farrow
-
Vicente Botet