1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Introduce non-locking variant of client_state::cleanup()

The method takes already locked lock object as an argument.
The caller must ensure that the lock object owns the underlying mutex.

Replaced homegrown wsrep::unique_lock with type alias from
std::unique_lock.
This commit is contained in:
Teemu Ollakka
2020-12-29 14:32:28 +02:00
parent 515ac816f9
commit a93955ddee
5 changed files with 17 additions and 49 deletions

View File

@ -74,7 +74,7 @@ namespace wsrep
{
if (pthread_cond_wait(
&cond_,
reinterpret_cast<pthread_mutex_t*>(lock.mutex().native())))
reinterpret_cast<pthread_mutex_t*>(lock.mutex()->native())))
{
throw wsrep::runtime_error("Cond wait failed");
}