|
xrootd
|
#include <XrdSysPthread.hh>

Public Member Functions | |
| XrdSysThread () | |
| ~XrdSysThread () | |
Static Public Member Functions | |
| static int | Cancel (pthread_t tid) |
| static int | Detach (pthread_t tid) |
| static int | SetCancelOff () |
| static int | Join (pthread_t tid, void **ret) |
| static int | SetCancelOn () |
| static int | SetCancelAsynchronous () |
| static int | SetCancelDeferred () |
| static void | CancelPoint () |
| static pthread_t | ID (void) |
| static int | Kill (pthread_t tid) |
| static unsigned long | Num (void) |
| static int | Run (pthread_t *, void *(*proc)(void *), void *arg, int opts=0, const char *desc=0) |
| static int | Same (pthread_t t1, pthread_t t2) |
| static void | setDebug (XrdSysError *erp) |
| static void | setStackSize (size_t stsz) |
| static int | Signal (pthread_t tid, int snum) |
| static int | Wait (pthread_t tid) |
Static Private Member Functions | |
| static void | doInit (void) |
Static Private Attributes | |
| static XrdSysError * | eDest = 0 |
| static pthread_key_t | threadNumkey |
| static size_t | stackSize = 0 |
| static int | initDone = 0 |
| XrdSysThread::XrdSysThread | ( | ) | [inline] |
| XrdSysThread::~XrdSysThread | ( | ) | [inline] |
| static int XrdSysThread::Cancel | ( | pthread_t | tid | ) | [inline, static] |
| static void XrdSysThread::CancelPoint | ( | ) | [inline, static] |
| static int XrdSysThread::Detach | ( | pthread_t | tid | ) | [inline, static] |
| void XrdSysThread::doInit | ( | void | ) | [static, private] |
References initDone, XrdSysMutex::Lock(), threadNumkey, and XrdSysMutex::UnLock().
| static pthread_t XrdSysThread::ID | ( | void | ) | [inline, static] |
Referenced by XrdCmsProtocol::Dispatch(), XrdCmsClientMan::Hookup(), and sslfactory_id_callback().
| static int XrdSysThread::Join | ( | pthread_t | tid, |
| void ** | ret | ||
| ) | [inline, static] |
| static int XrdSysThread::Kill | ( | pthread_t | tid | ) | [inline, static] |
Referenced by XrdBwmLogger::~XrdBwmLogger(), XrdCmsMeter::~XrdCmsMeter(), and XrdOfsEvs::~XrdOfsEvs().
| static unsigned long XrdSysThread::Num | ( | void | ) | [inline, static] |
References doInit(), initDone, and threadNumkey.
Referenced by XrdSysLogger::Time().
| int XrdSysThread::Run | ( | pthread_t * | tid, |
| void *(*)(void *) | proc, | ||
| void * | arg, | ||
| int | opts = 0, |
||
| const char * | desc = 0 |
||
| ) | [static] |
References doInit(), eDest, initDone, stackSize, threadNumkey, XRDSYSTHREAD_BIND, XRDSYSTHREAD_HOLD, and XrdSysThread_Xeq().
Referenced by XrdOssSys::AioInit(), XrdSecTLayer::bootUp(), XrdFrmConfig::ConfigMum(), XrdOssSys::ConfigStageC(), XrdCnsConfig::Configure(), XrdAccConfig::Configure(), XrdOssSys::Configure(), XrdFrmConfig::Configure(), XrdPssSys::Configure(), doCp_loc2xrd(), doCp_xrd2loc(), doCp_xrd2xrd(), XrdCmsConfig::DoIt(), XrdScheduler::Fork(), XrdCnsLogServer::Init(), XrdFrmTransfer::Init(), XrdCmsMeter::Init(), XrdXrootdAdmin::Init(), XrdFrmXfrQueue::Init(), XrdOfsEvr::Init(), XrdCmsCache::Init(), XrdBuffManager::Init(), XrdCmsRRQ::Init(), main(), mainConfig(), XrdOssMio::Map(), XrdFrmMigrate::Migrate(), XrdCmsMeter::Monitor(), XrdPosixXrootd::OpenCB(), XrdFrmXfrDaemon::Pong(), XrdCmsFinderTRG::RunAdmin(), XrdBwmHandle::setPolicy(), XrdPoll::Setup(), XrdCmsConfig::setupManager(), XrdFrmReqBoss::Start(), XrdXrootdAdmin::Start(), XrdCnsLogClient::Start(), XrdCmsAdmin::Start(), XrdBwmLogger::Start(), XrdScheduler::Start(), XrdCmsXmiReq::Start(), XrdCmsBaseFS::Start(), XrdOfsEvs::Start(), XrdCmsFinderRMT::StartManagers(), XrdOfsHandle::StartXpr(), XrdOucAppleBonjour::SubscribeForUpdates(), XrdOucAvahiBonjour::SubscribeForUpdates(), XrdW41Gate::Wait41(), XrdOucCacheReal::XrdOucCacheReal(), and XrdSecsssKT::XrdSecsssKT().
| static int XrdSysThread::Same | ( | pthread_t | t1, |
| pthread_t | t2 | ||
| ) | [inline, static] |
| static int XrdSysThread::SetCancelAsynchronous | ( | ) | [inline, static] |
Referenced by XrdOucAppleBonjour::BrowseEventLoopThread().
| static int XrdSysThread::SetCancelDeferred | ( | ) | [inline, static] |
| static int XrdSysThread::SetCancelOff | ( | ) | [inline, static] |
| static int XrdSysThread::SetCancelOn | ( | ) | [inline, static] |
Referenced by XrdOucAppleBonjour::BrowseEventLoopThread().
| static void XrdSysThread::setDebug | ( | XrdSysError * | erp | ) | [inline, static] |
References eDest.
Referenced by XrdConfig::Configure(), and XrdCnsConfig::Configure().
| static void XrdSysThread::setStackSize | ( | size_t | stsz | ) | [inline, static] |
References stackSize.
Referenced by main(), and XrdConfig::xsched().
| static int XrdSysThread::Signal | ( | pthread_t | tid, |
| int | snum | ||
| ) | [inline, static] |
| int XrdSysThread::Wait | ( | pthread_t | tid | ) | [static] |
XrdSysError * XrdSysThread::eDest = 0 [static, private] |
Referenced by Run(), and setDebug().
int XrdSysThread::initDone = 0 [static, private] |
size_t XrdSysThread::stackSize = 0 [static, private] |
Referenced by Run(), and setStackSize().
pthread_key_t XrdSysThread::threadNumkey [static, private] |
1.8.0