I\'m getting into C++11 threads and have run into a problem.
I want to declare a thread variable as global and start it later.
However all the examples I\'ve
You could use singleton pattern. Or I would rather say antipattern.
Inside a singleton you would have std::thread object encapsulated. Upon first access to singleton your thread will be created and started.
std::thread