What happens if i call wait on a notified condition variable
Suppose i have two thread and one shared c++ 11 condition variable. what happen if thread1 call notify and after that thread2 call wait? will thread2 block forever or it will continue it's work due to call of notify by thread1? Edit: enum bcLockOperation { bcLockOperation_Light = -1, bcLockOperation_Medium = 50, bcLockOperation_Heavy = 1 } class BC_COREDLL_EXP bcCustomMutex { private: bcCustomMutex(const bcCustomMutex&); bcCustomMutex& operator=(const bcCustomMutex&); protected: bcAtomic<int> mFlag; bcMutex mMutex; bcConditionVariable mCond; public: bcCustomMutex() { bcAtomicOperation: