Smart descriptor - closes the descriptor on destruction.
More...
#include <XrdClUtils.hh>
Smart descriptor - closes the descriptor on destruction.
Definition at line 306 of file XrdClUtils.hh.
◆ ScopedDescriptor()
| XrdCl::ScopedDescriptor::ScopedDescriptor |
( |
int | descriptor | ) |
|
|
inline |
Constructor.
Definition at line 312 of file XrdClUtils.hh.
312: pDescriptor( descriptor ) {}
◆ ~ScopedDescriptor()
| XrdCl::ScopedDescriptor::~ScopedDescriptor |
( |
| ) |
|
|
inline |
◆ GetDescriptor()
| int XrdCl::ScopedDescriptor::GetDescriptor |
( |
| ) |
|
|
inline |
Get the descriptor.
Definition at line 332 of file XrdClUtils.hh.
333 {
334 return pDescriptor;
335 }
◆ Release()
| int XrdCl::ScopedDescriptor::Release |
( |
| ) |
|
|
inline |
Release the descriptor being held.
Definition at line 322 of file XrdClUtils.hh.
323 {
324 int desc = pDescriptor;
325 pDescriptor = -1;
326 return desc;
327 }
The documentation for this class was generated from the following file: