So I want to wait until ender
has started waiting here is what basically:
std::condition_variable avalanche;
std::mutex mutex;
std::cout << "avalanche" << std::endl;
std::thread ender{[&]{
std::unique_lock lock{mutex};
avalanche.wait(lock);
}};
//Here how to wait until ender has started waiting on the
//Conditional Variable
I just can't wrap my head around it.
My goal ultimately is to create a bunch of threads which will do some work on their own but then continue in the order of creation.