![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <FileHandle.h>
Public Member Functions | |
CFileHandle () noexcept | |
CFileHandle (int fd) | |
![]() | |
CScopeGuard (std::function< decltype(close) > del, int handle=invalid) | |
CScopeGuard ()=delete | |
CScopeGuard (const CScopeGuard &rhs)=delete | |
CScopeGuard (CScopeGuard &&rhs) noexcept | |
~CScopeGuard () noexcept | |
operator int () const | |
operator bool () const | |
void | attach (int handle) |
attach a new handle to this instance, if there's already a handle it will be closed. | |
int | release () |
release the managed handle so that it won't be auto closed | |
void | reset () |
reset the instance, closing any managed handle and setting it to invalid | |
CScopeGuard & | operator= (const CScopeGuard &rhs)=delete |
CScopeGuard & | operator= (CScopeGuard &&rhs) noexcept |
|
inlinenoexcept |
|
inlineexplicit |