I would like to use Queuing Mutexin order to control the processing of some line of codes. On the top of code file, I defined queuing_mutex as CurrentMutexType like this:
typedef queuing_mutex CurrentMutexType;
- Can I instance from CurrentMutexType inside concurrent class built up to be used by parallel_for? And which type of modifier should I use (private mutable, public static, etc.)
- AfterI constructed lock and acquired lock on mutex using CurrentMutexType::scoped_lock(currentMutex) (I assume that currentMutex is an instance of CurrentMutexType), how do I destroy it inside operator function in concurrent class same as concurrent class in question 1, because I cannot use CurrentMutexType::scoped_lock::release() in non-static member function?