kodi
|
This implements a "guard" pattern for exiting all locks currently being held by the current thread and restoring those locks on destruction. More...
#include <SingleLock.h>
Public Member Functions | |
CSingleExit (CCriticalSection &cs) | |
This implements a "guard" pattern for exiting all locks currently being held by the current thread and restoring those locks on destruction.
This class can be used on a CCriticalSection that isn't owned by this thread in which case it will do nothing.