template<typename Key, typename Equal>
class concurrent::ItemMutex< Key, Equal >
Mutex-like object associated with the key of a MutexSet. It provides the same interface as engine::Mutex, you may use it with std::unique_lock, std::lock_guard, etc.
- Note
- different ItemMutex'es of the same MutexSet obtained with the same argument to GetMutexForKey() share the same critical section. IOW, if the first mutex is locked, the second one will block until the first mutex is unlocked.
-
can be used only from coroutines.
Definition at line 50 of file mutex_set.hpp.