A FileUsage is used to count the usage of fd by a same process in order to prevent un wanted delete. More...
#include <file-usage.h>
Collaboration diagram for ns3::FileUsage:Public Member Functions | |
| FileUsage (int fd, UnixFd *file) | |
| ~FileUsage () | |
| bool | CanForget () |
| bool | DecUsage () |
| UnixFd * | GetFile () const |
| UnixFd * | GetFileInc () |
| void | IncUsage () |
| bool | IsClosed () const |
| void | NullifyUsage () |
Private Attributes | |
| bool | m_closing |
| int | m_count |
| int const | m_fd |
| UnixFd *const | m_file |
A FileUsage is used to count the usage of fd by a same process in order to prevent un wanted delete.
Definition at line 33 of file file-usage.h.
| ns3::FileUsage::FileUsage | ( | int | fd, |
| UnixFd * | file | ||
| ) |
Definition at line 28 of file file-usage.cc.
| ns3::FileUsage::~FileUsage | ( | ) |
Definition at line 36 of file file-usage.cc.
References ns3::UnixFd::DecFdCount(), and m_file.
Here is the call graph for this function:| bool ns3::FileUsage::CanForget | ( | ) |
Definition at line 54 of file file-usage.cc.
References m_closing, and m_count.
Referenced by dce_close().
Here is the caller graph for this function:| bool ns3::FileUsage::DecUsage | ( | ) |
Definition at line 48 of file file-usage.cc.
References m_closing, and m_count.
Referenced by ns3::FdDecUsage().
Here is the caller graph for this function:| UnixFd * ns3::FileUsage::GetFile | ( | ) | const |
Definition at line 70 of file file-usage.cc.
References m_file.
Referenced by ns3::DceManager::Clone(), dce_close(), dce_poll(), and ns3::getRealFd().
Here is the caller graph for this function:| UnixFd * ns3::FileUsage::GetFileInc | ( | ) |
Definition at line 64 of file file-usage.cc.
References IncUsage(), and m_file.
Referenced by dce_poll(), and ns3::LinuxSocketImpl::Poll().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::FileUsage::IncUsage | ( | ) |
Definition at line 43 of file file-usage.cc.
References m_count.
Referenced by GetFileInc().
Here is the caller graph for this function:| bool ns3::FileUsage::IsClosed | ( | ) | const |
Definition at line 75 of file file-usage.cc.
References m_closing.
Referenced by ns3::getRealFd().
Here is the caller graph for this function:| void ns3::FileUsage::NullifyUsage | ( | ) |
Definition at line 80 of file file-usage.cc.
References m_count.
Referenced by ns3::DceManager::DeleteProcess().
Here is the caller graph for this function:
|
private |
Definition at line 63 of file file-usage.h.
Referenced by CanForget(), DecUsage(), and IsClosed().
|
private |
Definition at line 60 of file file-usage.h.
Referenced by CanForget(), DecUsage(), IncUsage(), and NullifyUsage().
|
private |
Definition at line 61 of file file-usage.h.
|
private |
Definition at line 62 of file file-usage.h.
Referenced by GetFile(), GetFileInc(), and ~FileUsage().