mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Initial work on strategy_named_pipe universal notifier.
This commit is contained in:
@@ -2219,6 +2219,11 @@ scoped_lock::scoped_lock(pthread_mutex_t &mutex) : lock_obj(&mutex), locked(fals
|
||||
this->lock();
|
||||
}
|
||||
|
||||
scoped_lock::scoped_lock(lock_t &lock) : lock_obj(&lock.mutex), locked(false)
|
||||
{
|
||||
this->lock();
|
||||
}
|
||||
|
||||
scoped_lock::~scoped_lock()
|
||||
{
|
||||
if (locked) this->unlock();
|
||||
|
||||
Reference in New Issue
Block a user