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:
@@ -142,14 +142,6 @@ public:
|
|||||||
return uri.c_str();
|
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.
|
* Check for errors that may have occurred in the I/O thread.
|
||||||
* Throws std::runtime_error on error.
|
* Throws std::runtime_error on error.
|
||||||
|
Reference in New Issue
Block a user