XrdSysThread Class Reference

#include <XrdSysPthread.hh>

List of all members.

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 XrdSysErroreDest
static pthread_key_t threadNumkey
static size_t stackSize
static int initDone


Detailed Description

Definition at line 287 of file XrdSysPthread.hh.


Constructor & Destructor Documentation

XrdSysThread::XrdSysThread (  )  [inline]

Definition at line 345 of file XrdSysPthread.hh.

XrdSysThread::~XrdSysThread (  )  [inline]

Definition at line 346 of file XrdSysPthread.hh.


Member Function Documentation

static int XrdSysThread::Cancel ( pthread_t  tid  )  [inline, static]

Definition at line 291 of file XrdSysPthread.hh.

References pthread_cancel().

Referenced by XrdClientThread::Cancel().

static int XrdSysThread::Detach ( pthread_t  tid  )  [inline, static]

Definition at line 293 of file XrdSysPthread.hh.

References pthread_detach().

Referenced by XrdClientThread::Detach().

static int XrdSysThread::SetCancelOff (  )  [inline, static]

Definition at line 296 of file XrdSysPthread.hh.

References PTHREAD_CANCEL_DISABLE, and pthread_setcancelstate().

Referenced by XrdClientThread::SetCancelOff().

static int XrdSysThread::Join ( pthread_t  tid,
void **  ret 
) [inline, static]

Definition at line 300 of file XrdSysPthread.hh.

References pthread_join().

Referenced by XrdSecProtocolssl::Delete(), and XrdClientThread::Join().

static int XrdSysThread::SetCancelOn (  )  [inline, static]

Definition at line 304 of file XrdSysPthread.hh.

References PTHREAD_CANCEL_ENABLE, and pthread_setcancelstate().

Referenced by XrdOucAppleBonjour::BrowseEventLoopThread(), and XrdClientThread::SetCancelOn().

static int XrdSysThread::SetCancelAsynchronous (  )  [inline, static]

Definition at line 308 of file XrdSysPthread.hh.

References PTHREAD_CANCEL_ASYNCHRONOUS, and pthread_setcanceltype().

Referenced by XrdOucAppleBonjour::BrowseEventLoopThread(), and XrdClientThread::SetCancelAsynchronous().

static int XrdSysThread::SetCancelDeferred (  )  [inline, static]

Definition at line 312 of file XrdSysPthread.hh.

References PTHREAD_CANCEL_DEFERRED, and pthread_setcanceltype().

Referenced by XrdClientThread::SetCancelDeferred().

static void XrdSysThread::CancelPoint (  )  [inline, static]

Definition at line 316 of file XrdSysPthread.hh.

References pthread_testcancel().

Referenced by XrdClientThread::CancelPoint().

static pthread_t XrdSysThread::ID ( void   )  [inline, static]

Definition at line 321 of file XrdSysPthread.hh.

References pthread_self().

Referenced by XrdLink::Bind(), XrdCmsProtocol::Dispatch(), XrdCmsClientMan::Hookup(), and protocolssl_id_callback().

static int XrdSysThread::Kill ( pthread_t  tid  )  [inline, static]

Definition at line 323 of file XrdSysPthread.hh.

References pthread_cancel().

Referenced by XrdBwmLogger::~XrdBwmLogger(), XrdCmsMeter::~XrdCmsMeter(), and XrdOfsEvs::~XrdOfsEvs().

static unsigned long XrdSysThread::Num ( void   )  [inline, static]

Definition at line 325 of file XrdSysPthread.hh.

References doInit(), initDone, pthread_getspecific(), and threadNumkey.

Referenced by XrdSysLogger::Time().

int XrdSysThread::Run ( pthread_t ,
void *(*)(void *)  proc,
void *  arg,
int  opts = 0,
const char *  desc = 0 
) [static]

Definition at line 266 of file XrdSysPthread.cc.

References doInit(), eDest, initDone, pthread_attr_init(), pthread_attr_setdetachstate(), pthread_attr_setscope(), pthread_attr_setstacksize(), pthread_create(), PTHREAD_CREATE_DETACHED, PTHREAD_SCOPE_SYSTEM, stackSize, threadNumkey, XRDSYSTHREAD_BIND, XRDSYSTHREAD_HOLD, and XrdSysThread_Xeq().

Referenced by XrdOssSys::AioInit(), XrdSecTLayer::bootUp(), XrdProofdManager::Config(), XrdProofdPriorityMgr::Config(), XrdProofdProofServMgr::Config(), XrdProofSched::Config(), XrdProofdClientMgr::Config(), XrdFrmConfig::ConfigMum(), XrdOssSys::ConfigStageC(), XrdAccConfig::Configure(), XrdFrmConfig::Configure(), XrdOssSys::Configure(), XrdCnsConfig::Configure(), doCp_loc2xrd(), doCp_xrd2loc(), doCp_xrd2xrd(), XrdCmsConfig::DoIt(), XrdScheduler::Fork(), XrdScheduler::hireWorker(), XrdCmsMeter::Init(), XrdCnsLogServer::Init(), XrdCmsRRQ::Init(), XrdFrmTransfer::Init(), XrdCmsCache::Init(), XrdBuffManager::Init(), XrdXrootdAdmin::Init(), XrdFrmXfrQueue::Init(), XrdOfsEvr::Init(), main(), mainConfig(), XrdOssMio::Map(), XrdFrmMigrate::Migrate(), XrdCmsMeter::Monitor(), XrdPosixXrootd::OpenCB(), XrdFrmXfrDaemon::Pong(), XrdProofdProofServMgr::PrepareSessionRecovering(), XrdClientThread::Run(), XrdCmsFinderTRG::RunAdmin(), XrdBwmHandle::setPolicy(), XrdPoll::Setup(), XrdCmsConfig::setupManager(), XrdOfsEvs::Start(), XrdFrmReqBoss::Start(), XrdScheduler::Start(), XrdBwmLogger::Start(), XrdCmsAdmin::Start(), XrdXrootdAdmin::Start(), XrdCnsLogClient::Start(), XrdCmsXmiReq::Start(), XrdCmsFinderRMT::StartManagers(), XrdOfsHandle::StartXpr(), XrdOucAvahiBonjour::SubscribeForUpdates(), XrdOucAppleBonjour::SubscribeForUpdates(), XrdW41Gate::Wait41(), XrdSecsssKT::XrdSecsssKT(), and XrdSfsGetFileSystem().

static int XrdSysThread::Same ( pthread_t  t1,
pthread_t  t2 
) [inline, static]

Definition at line 333 of file XrdSysPthread.hh.

References pthread_equal().

Referenced by XrdLink::Bind().

static void XrdSysThread::setDebug ( XrdSysError erp  )  [inline, static]

Definition at line 336 of file XrdSysPthread.hh.

References eDest.

Referenced by XrdCnsConfig::Configure(), and XrdConfig::Configure().

static void XrdSysThread::setStackSize ( size_t  stsz  )  [inline, static]

Definition at line 338 of file XrdSysPthread.hh.

References stackSize.

Referenced by main(), and XrdConfig::xsched().

static int XrdSysThread::Signal ( pthread_t  tid,
int  snum 
) [inline, static]

Definition at line 340 of file XrdSysPthread.hh.

References pthread_kill().

Referenced by XrdLink::Bind().

int XrdSysThread::Wait ( pthread_t  tid  )  [static]

Definition at line 290 of file XrdSysPthread.cc.

References pthread_join().

void XrdSysThread::doInit ( void   )  [static, private]

Definition at line 249 of file XrdSysPthread.cc.

References initDone, XrdSysMutex::Lock(), pthread_key_create(), pthread_setspecific(), threadNumkey, and XrdSysMutex::UnLock().

Referenced by Num(), and Run().


Member Data Documentation

XrdSysError * XrdSysThread::eDest [static, private]

Definition at line 350 of file XrdSysPthread.hh.

Referenced by Run(), and setDebug().

pthread_key_t XrdSysThread::threadNumkey [static, private]

Definition at line 351 of file XrdSysPthread.hh.

Referenced by doInit(), Num(), and Run().

size_t XrdSysThread::stackSize [static, private]

Definition at line 352 of file XrdSysPthread.hh.

Referenced by Run(), and setStackSize().

int XrdSysThread::initDone [static, private]

Definition at line 353 of file XrdSysPthread.hh.

Referenced by doInit(), Num(), and Run().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:47 2011 for ROOT_528-00b_version by  doxygen 1.5.1