mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
CvSourceImpl::CreateProperty(): Use lock_guard instead of unique_lock.
This commit is contained in:
@@ -113,7 +113,7 @@ void CvSourceImpl::NotifyError(llvm::StringRef msg) {
|
||||
int CvSourceImpl::CreateProperty(llvm::StringRef name, CS_PropertyKind kind,
|
||||
int minimum, int maximum, int step,
|
||||
int defaultValue, int value) {
|
||||
std::unique_lock<std::mutex> lock(m_mutex);
|
||||
std::lock_guard<std::mutex> lock(m_mutex);
|
||||
int& ndx = m_properties[name];
|
||||
if (ndx == 0) {
|
||||
// create a new index
|
||||
|
||||
Reference in New Issue
Block a user