Initial work on strategy_named_pipe universal notifier.

This commit is contained in:
ridiculousfish
2014-05-04 15:06:40 -07:00
parent 7e44bcfd8a
commit f27232bd0a
5 changed files with 168 additions and 8 deletions

View File

@@ -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();