|
xrootd
|
#include <XrdClForkHandler.hh>

Public Member Functions | |
| ForkHandler () | |
| void | RegisterFileObject (FileStateHandler *file) |
| Register a file object. More... | |
| void | UnRegisterFileObject (FileStateHandler *file) |
| void | RegisterFileSystemObject (FileSystem *fs) |
| void | UnRegisterFileSystemObject (FileSystem *fs) |
| Un-register a file system object. More... | |
| void | RegisterPostMaster (PostMaster *postMaster) |
| Register a post master object. More... | |
| void | RegisterFileTimer (FileTimer *fileTimer) |
| void | Prepare () |
| Handle the preparation part of the forking process. More... | |
| void | Parent () |
| Handle the parent post-fork. More... | |
| void | Child () |
| Handler the child post-fork. More... | |
Private Attributes | |
| std::set< FileStateHandler * > | pFileObjects |
| std::set< FileSystem * > | pFileSystemObjects |
| PostMaster * | pPostMaster |
| FileTimer * | pFileTimer |
| XrdSysMutex | pMutex |
| XrdCl::ForkHandler::ForkHandler | ( | ) |
| void XrdCl::ForkHandler::Child | ( | ) |
Handler the child post-fork.
References XrdCl::Log::Debug(), XrdCl::PostMaster::Finalize(), XrdCl::DefaultEnv::GetLog(), XrdCl::PostMaster::GetTaskManager(), XrdCl::PostMaster::Initialize(), pFileObjects, pFileSystemObjects, pFileTimer, pMutex, pPostMaster, XrdCl::TaskManager::RegisterTask(), XrdCl::PostMaster::Start(), XrdCl::FileTimer::UnLock(), XrdSysMutex::UnLock(), and XrdCl::UtilityMsg.
| void XrdCl::ForkHandler::Parent | ( | ) |
Handle the parent post-fork.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), pFileObjects, pFileSystemObjects, pFileTimer, pMutex, pPostMaster, XrdCl::PostMaster::Start(), XrdCl::FileTimer::UnLock(), XrdSysMutex::UnLock(), and XrdCl::UtilityMsg.
| void XrdCl::ForkHandler::Prepare | ( | ) |
Handle the preparation part of the forking process.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), XrdCl::FileTimer::Lock(), XrdSysMutex::Lock(), pFileObjects, pFileSystemObjects, pFileTimer, pMutex, pPostMaster, XrdCl::PostMaster::Stop(), and XrdCl::UtilityMsg.
|
inline |
Register a file object.
References pFileObjects, and pMutex.
Referenced by XrdCl::FileStateHandler::FileStateHandler().
|
inline |
References pFileSystemObjects, and pMutex.
Referenced by XrdCl::FileSystem::FileSystem().
|
inline |
References pFileTimer, and pMutex.
Referenced by XrdCl::DefaultEnv::Initialize().
|
inline |
Register a post master object.
References pMutex, and pPostMaster.
Referenced by XrdCl::DefaultEnv::GetPostMaster().
|
inline |
References pFileObjects, and pMutex.
Referenced by XrdCl::FileStateHandler::~FileStateHandler().
|
inline |
Un-register a file system object.
References pFileSystemObjects, and pMutex.
Referenced by XrdCl::FileSystem::~FileSystem().
|
private |
Referenced by Child(), Parent(), Prepare(), RegisterFileObject(), and UnRegisterFileObject().
|
private |
Referenced by Child(), Parent(), Prepare(), RegisterFileSystemObject(), and UnRegisterFileSystemObject().
|
private |
Referenced by Child(), Parent(), Prepare(), and RegisterFileTimer().
|
private |
|
private |
Referenced by Child(), Parent(), Prepare(), and RegisterPostMaster().
1.8.3.1