#include <XrdSysPthread.hh>
Public Member Functions | |
int | CondWait () |
void | Post () |
void | Wait () |
XrdSysSemaphore (int semval=1, const char *=0) | |
~XrdSysSemaphore () | |
Private Attributes | |
sem_t | h_semaphore |
Definition at line 230 of file XrdSysPthread.hh.
XrdSysSemaphore::XrdSysSemaphore | ( | int | semval = 1 , |
|
const char * | = 0 | |||
) | [inline] |
XrdSysSemaphore::~XrdSysSemaphore | ( | ) | [inline] |
int XrdSysSemaphore::CondWait | ( | ) | [inline] |
Definition at line 234 of file XrdSysPthread.hh.
References h_semaphore, and sem_trywait().
Referenced by XrdCmsRespCB::Init().
void XrdSysSemaphore::Post | ( | ) | [inline] |
Definition at line 242 of file XrdSysPthread.hh.
References h_semaphore, and sem_post().
Referenced by XrdCnsLogClient::Activate(), XrdFrmXfrQueue::Add(), XrdCmsRRQ::Add(), XrdMpxOut::Add(), XrdCnsLogFile::Add(), XrdCms::AdminReq::AdminReq(), XrdCmsClientMan::delayResp(), XrdCmsAdmin::do_Login(), XrdXrootdProtocol::do_OffloadIO(), XrdScheduler::DoIt(), XrdBwmPolicy1::Done(), XrdCmsRespCB::Done(), XrdBwmHandle::theEICB::Done(), XrdFrmXfrQueue::Done(), XrdCmsState::Enable(), XrdCnsLogFile::Eol(), XrdBwmLogger::Event(), XrdFrmXfrQueue::Init(), XrdOfsEvs::Notify(), XrdPosixXrootd::OpenCB(), XrdCnsLogRec::Queue(), XrdCmsPrepArgs::Queue(), XrdCmsRRQ::Ready(), XrdCmsManTree::Redrive(), XrdCmsAdmin::Relay(), XrdCmsResp::Reply(), XrdCms::AdminReq::Requeue(), XrdScheduler::Schedule(), XrdSecTLayer::secXeq(), XrdOfsEvr::sendEvent(), XrdW41Gate::Serialize(), XrdLink::setRef(), XrdOssSys::Stage_RT(), XrdCmsAdmin::Start(), XrdFrmXfrQueue::StopMon(), XrdFrmXfrQueue::Stopped(), XrdCmsRRQ::TimeOut(), XrdSysXSLock::UnLock(), XrdCmsState::Update(), XrdFrmReqBoss::Wakeup(), XrdCmsXmiReq::XrdCmsXmiReq(), and XrdFrmConfigMum().
void XrdSysSemaphore::Wait | ( | ) | [inline] |
Definition at line 246 of file XrdSysPthread.hh.
References h_semaphore, and sem_wait().
Referenced by XrdFrmXfrQueue::Add(), XrdFrmConfig::Configure(), XrdBwmPolicy1::Dispatch(), XrdXrootdProtocol::do_Offload(), XrdOfsEvr::flushEvents(), XrdCnsLogRec::Get(), XrdFrmXfrQueue::Get(), XrdCnsLogFile::getRec(), XrdCms::AdminReq::getReq(), XrdCmsPrepArgs::getRequest(), XrdSysXSLock::Lock(), XrdCmsState::Monitor(), XrdPosixXrootd::OpenCB(), XrdCmsManTree::Pause(), XrdCmsXmiReq::processPrpQ(), XrdCmsXmiReq::processReqQ(), XrdCmsXmiReq::processStgQ(), XrdCmsAdmin::Relay(), XrdCmsResp::Reply(), XrdCmsRRQ::Respond(), XrdScheduler::Run(), XrdCnsLogClient::Run(), XrdMpxOut::Run(), XrdSecTLayer::secDrain(), XrdOfsEvs::sendEvents(), XrdBwmLogger::sendEvents(), XrdLink::Serialize(), XrdOssSys::Stage_In(), XrdCmsClientMan::Start(), XrdFrmXfrQueue::StopMon(), XrdCnsLogFile::Subscribe(), XrdCmsRRQ::TimeOut(), XrdBwmHandle::theEICB::Wait(), XrdCmsRespCB::Wait(), XrdW41Gate::Wait41(), XrdFrmReqBoss::Wakeup(), and XrdCnsLogFile::~XrdCnsLogFile().
sem_t XrdSysSemaphore::h_semaphore [private] |
Definition at line 262 of file XrdSysPthread.hh.
Referenced by CondWait(), Post(), Wait(), XrdSysSemaphore(), and ~XrdSysSemaphore().