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:
@ -193,6 +193,13 @@ namespace wsrep
|
||||
* The state is changed to s_none.
|
||||
*/
|
||||
void cleanup();
|
||||
|
||||
/**
|
||||
* Overload of cleanup() method which takes lock as argument.
|
||||
* This method does not release the lock during execution, but
|
||||
* the lock is needed for debug build sanity checks.
|
||||
*/
|
||||
void cleanup(wsrep::unique_lock<wsrep::mutex>& lock);
|
||||
/** @} */
|
||||
|
||||
/** @name Client command handling */
|
||||
|
Reference in New Issue
Block a user