Boost logo

Boost Users :

Subject: [Boost-users] quick threading query
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2013-07-14 08:03:22


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.



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