Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CSingleExit Class Reference

#include <SingleLock.h>

Public Member Functions

 CSingleExit (CCriticalSection &cs)
 
 ~CSingleExit ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CSingleExit()

CSingleExit::CSingleExit ( CCriticalSection & cs)
inlineexplicit

◆ ~CSingleExit()

CSingleExit::~CSingleExit ( )
inline

The documentation for this class was generated from the following file: