XRootD
Loading...
Searching...
No Matches
XrdOucLock Class Reference

#include <XrdOucLock.hh>

+ Collaboration diagram for XrdOucLock:

Public Member Functions

 XrdOucLock (XrdSysMutex *mp)
 
 ~XrdOucLock ()
 

Detailed Description

Definition at line 35 of file XrdOucLock.hh.

Constructor & Destructor Documentation

◆ XrdOucLock()

XrdOucLock::XrdOucLock ( XrdSysMutex * mp)
inline

Definition at line 38 of file XrdOucLock.hh.

39 {Mutex = mp; Mutex->Lock(); isLocked = 1;}

References XrdSysMutex::Lock().

+ Here is the call graph for this function:

◆ ~XrdOucLock()

XrdOucLock::~XrdOucLock ( )
inline

Definition at line 40 of file XrdOucLock.hh.

40{if (isLocked) Mutex->UnLock();}

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