template<class Mutex>
class ripple::scope_unlock< Mutex >
Automatically unlocks and re-locks a unique_lock object. 
This is the reverse of a std::unique_lock object - instead of locking the mutex for the lifetime of this object, it unlocks it.
Make sure you don't try to unlock mutexes that aren't actually locked!
This is essentially a less-versatile boost::reverse_lock.
e.g. 
 
for (;;)
{
    
 
    ... 
do some stuff with it locked ..
 
 
    while (xyz)
    {
        ... 
do some stuff with it locked ..
 
 
 
        
        
 
        ...do 
some stuff with it unlocked ...
 
    }  
 
}  
Automatically unlocks and re-locks a unique_lock object.
 
  
Definition at line 230 of file scope.h.