forked from boostorg/unordered
done reverse unlock in multimutex
This commit is contained in:
committed by
Christian Mazakas
parent
2070cbe2cc
commit
5881dcc2b2
@ -51,8 +51,8 @@ public:
|
||||
return mutexes[pos];
|
||||
}
|
||||
|
||||
void lock()noexcept{for(auto&m:mutexes)m.lock();}
|
||||
void unlock()noexcept{for(auto&m:mutexes)m.unlock();}
|
||||
void lock()noexcept{for(auto& m:mutexes)m.lock();}
|
||||
void unlock()noexcept{for(auto n=N;n--;)mutexes[n].unlock();}
|
||||
|
||||
private:
|
||||
mutable std::array<Mutex,N> mutexes;
|
||||
|
Reference in New Issue
Block a user