input/InputStream: remove methods Lock() and Unlock()
These methods are not exception-safe; std::lock_guard should better be used.
This commit is contained in:
parent
20d01be1ad
commit
d20b545a94
|
@ -142,14 +142,6 @@ public:
|
|||
return uri.c_str();
|
||||
}
|
||||
|
||||
void Lock() noexcept {
|
||||
mutex.lock();
|
||||
}
|
||||
|
||||
void Unlock() noexcept {
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for errors that may have occurred in the I/O thread.
|
||||
* Throws std::runtime_error on error.
|
||||
|
|
Loading…
Reference in New Issue