Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Basics::mutex Class Reference

#include <Thread.H>

List of all members.

Public Member Functions

 mutex () throw ()
 mutex (int type) throw ()
 ~mutex () throw ()
void lock () throw ()
void unlock () throw ()

Private Attributes

pthread_mutex_t m
char pad [64]

Friends

class cond


Constructor & Destructor Documentation

Basics::mutex::mutex  )  throw ()
 

Basics::mutex::mutex int  type  )  throw ()
 

Basics::mutex::~mutex  )  throw ()
 


Member Function Documentation

void Basics::mutex::lock  )  throw ()
 

Referenced by CacheS::AbortGraphLogChkpt(), SRPC_Call_Stats::accumulateStats(), NFS_Call_Stats::accumulateStats(), Lock_Timing_Recorder::acquire_read_done(), Lock_Timing_Recorder::acquire_read_start(), Lock_Timing_Recorder::acquire_write_done(), Lock_Timing_Recorder::acquire_write_start(), ReadersWritersLock::acquireRead(), AcquireShortIdBlock(), ReadersWritersLock::acquireWrite(), DirInfos::AddDpnd(), CacheS::AddEntry(), CacheS::AddEntryToMPKFile(), AddPrimitive(), AddPrimitiveOp(), AddPrimitiveUnOp(), AddStmtAssocs(), AddToNewStuff(), AllFreeVarsBoundInContext(), VMemPool::allocate(), ApplicationFromCache(), ApplyFunction(), ApplyModel(), Assert(), AtomInit::AtomInit(), Basics::thread::pause(), BindApplicationArgs(), BindRunToolArgs(), Debug::BlockForever(), Tool_Relay::body(), CacheS::CacheS(), CacheS_CleanCacheLogWorker(), CacheS_DoDeletions(), CacheS_DoFreeMPKFiles(), CacheS_FlushWorker(), CacheWorker::CacheWorker(), children::call_failed(), PickleC::checkNumBytesRead(), Checkpoint(), VPKFile::CheckPoint(), CheckpointAllDirShortIds(), EmptyPKLog::CheckpointBegin(), EmptyPKLog::CheckpointEnd(), CheckpointServer(), SMultiPKFile::ChkptForRewrite(), VMultiPKFile::ChkptForWrite(), CacheS::ChkptGraphLog(), CacheS::ChkptUsedCIs(), CacheS::CleanCacheLogEntries(), ClientCall(), CollectDpnd(), CacheS::CommitChkpt(), DupeTable::completed_rpc(), FpVC::Copy(), core_match_init(), SRPC_listener::create(), CreateDerived(), LimService::DecNumRunning(), RunToolCalls::Delete(), DeleteAllDirShortIds(), DeleteAllFPShortId(), DeleteDirShortId(), DequeueRecoverMastership(), SRPC_listener::destroy(), do_cow(), CacheS::DoCheckpoint(), DoDeletions(), CacheS::EndMark(), ApplyEC::Eval(), FileEC::Eval(), SelectEC::Eval(), BindingEC::Eval(), NameEC::Eval(), ComputedEC::Eval(), IfEC::Eval(), Evaluator_Dir_Server(), Evaluator_Dir_Server_Failure(), Evaluator_Dir_Server_Inner(), Leases::Expire(), FdCache::PartialCache::accumulateStats(), FdCache::PartialCache::close(), FdCache::PartialCache::flush(), FdCache::PartialCache::janitor_sweep(), FdCache::PartialCache::open(), FdCache::PartialCache::tryopen(), CacheWorker::Finish(), CacheS::FlushAll(), CacheS::FlushCacheLog(), CacheS::FlushGraphLog(), CacheS::FlushUsedCIs(), ModelVC::Force(), LimService::Forked_Run(), VMemPool::free(), CacheS::FreeVariables(), RunToolCalls::Get(), DupeTable::get_stats(), CacheS::GetCacheId(), CacheS::GetCacheState(), GetChar(), GetDirShortId(), EmptyPKLog::GetEpoch(), GetFPShortId(), CacheS::GetLeases(), SourceOrDerived::getMetadataRootLocalName(), GetNewHandle(), SRPC_Call_Stats::getStats(), NFS_Call_Stats::getStats(), GetWeedingState(), LimService::HandleFailure(), IncCounter(), inet_ntoa_r(), Info(), VMemPool::init(), init(), Atom::Init(), VPKFile::IsEmpty(), IterateAssoc(), KeepDerived(), children::killer_body(), LandlordThread(), LimService::LimService(), LimService_Worker(), ParCacheC::Locate(), Debug::Lock(), Lock_Timing_Recorder::Lock_Timing_Recorder(), Lock_Timing_Recorder::locked_reason(), LogAllDirShortIds(), CacheS::Lookup(), DirInfos::LookupDir(), main(), ChkptWorker::MainLoop(), Map(), MastershipCheckpoint(), ModelFromCache(), children::my_turn(), TextVC::NDS(), Lock_Timing_Recorder::new_file_check(), DupeTable::new_rpc(), LimService::NewConnection(), NewDirShortId(), ShortIdStock::newShortId(), LimService::NewWorker(), Token::Next(), NFS_Call_Stats::NFS_Call_Stats(), NormalModelFromCache(), OpenSource(), operator<<(), Or(), OS::getGrGid(), OS::getGrNam(), OS::getPwNam(), OS::getPwUid(), OS::GroupIter::GroupIter(), OS::PasswdIter::PasswdIter(), ParMap(), PError(), Pickle(), PickleC::PickleVal(), PrimError(), Print(), Proc1(), ProcessModelHead(), RunToolCalls::Put(), QueueRecoverMastership(), VMemPool::readCheckpoint(), SRPC_Call_Stats::recordCall(), NFS_Call_Stats::recordCall(), CacheS::Recover(), CacheS::RecoverCacheLog(), CacheS::RecoverCacheLogEntries(), CacheS::RecoverCILog(), CacheS::RecoverDeleting(), CacheS::RecoverGraphLog(), CacheS::RecoverHitFilter(), CacheS::RecoverMPKsToWeed(), CacheS::RecoverWeededMPKs(), recv_dir(), VMemPool::registerCallbacks(), CacheS::RegisterIdleFlushWorker(), LimService::RegisterIdleWorker(), ReadersWritersLock::release(), Lock_Timing_Recorder::release_done(), Lock_Timing_Recorder::release_start(), ReadersWritersLock::releaseRead(), ReleaseShortIdBlock(), ReadersWritersLock::releaseWrite(), VMultiPKFile::ReleaseWriteLock(), CacheS::RenewLeases(), RenewShortIdBlock(), ReplicateMissing(), CacheS::ResumeLeaseExp(), SMultiPKFile::Rewrite(), LimService::Run(), RunTool(), RunToolDone(), RunToolFromCache(), RunToolHost(), RunToolHostInit(), Token::ScanComment(), Token::ScanIdNumber(), Token::ScanPragma(), Token::ScanText(), VPKFile::SendAllNames(), Server(), SetDirShortId(), SetFPDirShortId(), SetFPFileShortId(), CacheS::SetHitFilter(), SourceOrDerived::setMetadataRootLocalName(), ParCacheC::SetServerHost(), ShortIdBlockCheckpoint(), SourceOrDerived::shortIdToName(), TextVC::Sid(), SourceWeed(), SRPC_Call_Stats::SRPC_Call_Stats(), MultiSRPC::Start(), LSWorker::Start(), CacheWorker::Start(), Lock_Timing_Recorder::start_new_file(), CacheS::StartMark(), ShortIdStock::stockboy(), TextVC::TextC::TextC(), Thread1(), Thread2(), Thread3(), ThreadDataCreate(), Timing_Recorder_exit_cleanup(), TextVC::TName(), ReadersWritersLock::tryRead(), ReadersWritersLock::tryWrite(), UniqueId(), Unpickle(), PickleC::UnpickleVal(), UpdateOrphans(), ValType(), VestaConfig::get(), VestaConfig::get_location(), VestaConfig::is_set(), VestaConfig::section_vars(), VestaConfig::sections(), VestaConfig::set_location(), CacheS::VToSCache(), children::wait_for(), ChkptWorker::WaitUntilDone(), CacheS::WeederRecovering(), EmptyPKLog::Write(), VMemPool::writeCheckpoint(), Lock_Timing_Recorder::~Lock_Timing_Recorder(), and ReadersWritersLock::~ReadersWritersLock().

void Basics::mutex::unlock  )  throw ()
 

Referenced by CacheS::AbortGraphLogChkpt(), SRPC_Call_Stats::accumulateStats(), NFS_Call_Stats::accumulateStats(), Lock_Timing_Recorder::acquire_read_done(), Lock_Timing_Recorder::acquire_read_start(), Lock_Timing_Recorder::acquire_write_done(), Lock_Timing_Recorder::acquire_write_start(), ReadersWritersLock::acquireRead(), AcquireShortIdBlock(), ReadersWritersLock::acquireWrite(), DirInfos::AddDpnd(), CacheS::AddEntry(), CacheS::AddEntryToMPKFile(), AddPrimitive(), AddPrimitiveOp(), AddPrimitiveUnOp(), AddStmtAssocs(), AddToNewStuff(), AllFreeVarsBoundInContext(), VMemPool::allocate(), ApplicationFromCache(), ApplyFunction(), ApplyModel(), Assert(), AtomInit::AtomInit(), BindApplicationArgs(), BindRunToolArgs(), Tool_Relay::body(), CacheS::CacheS(), CacheS_CleanCacheLogWorker(), CacheS_DoDeletions(), CacheS_DoFreeMPKFiles(), CacheS_FlushWorker(), CacheWorker::CacheWorker(), children::call_failed(), PickleC::checkNumBytesRead(), Checkpoint(), VPKFile::CheckPoint(), CheckpointAllDirShortIds(), EmptyPKLog::CheckpointBegin(), EmptyPKLog::CheckpointEnd(), CheckpointServer(), SMultiPKFile::ChkptForRewrite(), VMultiPKFile::ChkptForWrite(), CacheS::ChkptGraphLog(), CacheS::ChkptUsedCIs(), CacheS::CleanCacheLogEntries(), ClientCall(), CollectDpnd(), CacheS::CommitChkpt(), DupeTable::completed_rpc(), FpVC::Copy(), core_match_init(), SRPC_listener::create(), CreateDerived(), LimService::DecNumRunning(), RunToolCalls::Delete(), DeleteAllDirShortIds(), DeleteAllFPShortId(), DeleteDirShortId(), DequeueRecoverMastership(), SRPC_listener::destroy(), do_cow(), CacheS::DoCheckpoint(), DoDeletions(), CacheS::EndMark(), ApplyEC::Eval(), FileEC::Eval(), SelectEC::Eval(), BindingEC::Eval(), NameEC::Eval(), ComputedEC::Eval(), IfEC::Eval(), Evaluator_Dir_Server(), Evaluator_Dir_Server_Failure(), Evaluator_Dir_Server_Inner(), Leases::Expire(), FdCache::PartialCache::accumulateStats(), FdCache::PartialCache::close(), FdCache::PartialCache::flush(), FdCache::PartialCache::janitor_sweep(), FdCache::PartialCache::open(), FdCache::PartialCache::tryopen(), CacheWorker::Finish(), CacheS::FlushAll(), CacheS::FlushCacheLog(), CacheS::FlushGraphLog(), CacheS::FlushUsedCIs(), ModelVC::Force(), LimService::Forked_Run(), VMemPool::free(), CacheS::FreeVariables(), RunToolCalls::Get(), DupeTable::get_stats(), CacheS::GetCacheId(), CacheS::GetCacheState(), GetChar(), GetDirShortId(), EmptyPKLog::GetEpoch(), GetFPShortId(), CacheS::GetLeases(), SourceOrDerived::getMetadataRootLocalName(), GetNewHandle(), SRPC_Call_Stats::getStats(), NFS_Call_Stats::getStats(), GetWeedingState(), LimService::HandleFailure(), IncCounter(), inet_ntoa_r(), Info(), VMemPool::init(), init(), Atom::Init(), VPKFile::IsEmpty(), IterateAssoc(), KeepDerived(), children::killer_body(), LandlordThread(), LimService::LimService(), LimService_Worker(), ParCacheC::Locate(), Lock_Timing_Recorder::Lock_Timing_Recorder(), Lock_Timing_Recorder::locked_reason(), LogAllDirShortIds(), CacheS::Lookup(), DirInfos::LookupDir(), main(), ChkptWorker::MainLoop(), Map(), MastershipCheckpoint(), ModelFromCache(), children::my_turn(), TextVC::NDS(), Lock_Timing_Recorder::new_file_check(), DupeTable::new_rpc(), LimService::NewConnection(), NewDirShortId(), ShortIdStock::newShortId(), LimService::NewWorker(), Token::Next(), NFS_Call_Stats::NFS_Call_Stats(), NormalModelFromCache(), OpenSource(), operator<<(), Or(), OS::getGrGid(), OS::getGrNam(), OS::getPwNam(), OS::getPwUid(), OS::GroupIter::~GroupIter(), OS::PasswdIter::~PasswdIter(), ParMap(), PError(), Pickle(), PickleC::PickleVal(), PrimError(), Print(), Proc1(), ProcessModelHead(), RunToolCalls::Put(), QueueRecoverMastership(), VMemPool::readCheckpoint(), SRPC_Call_Stats::recordCall(), NFS_Call_Stats::recordCall(), CacheS::Recover(), CacheS::RecoverCacheLog(), CacheS::RecoverCacheLogEntries(), CacheS::RecoverCILog(), CacheS::RecoverDeleting(), CacheS::RecoverGraphLog(), CacheS::RecoverHitFilter(), CacheS::RecoverMPKsToWeed(), CacheS::RecoverWeededMPKs(), recv_dir(), VMemPool::registerCallbacks(), CacheS::RegisterIdleFlushWorker(), LimService::RegisterIdleWorker(), ReadersWritersLock::release(), Lock_Timing_Recorder::release_done(), Lock_Timing_Recorder::release_start(), ReadersWritersLock::releaseRead(), ReleaseShortIdBlock(), ReadersWritersLock::releaseWrite(), VMultiPKFile::ReleaseWriteLock(), CacheS::RenewLeases(), RenewShortIdBlock(), ReplicateMissing(), CacheS::ResumeLeaseExp(), SMultiPKFile::Rewrite(), LimService::Run(), RunTool(), RunToolDone(), RunToolFromCache(), RunToolHost(), RunToolHostInit(), Token::ScanComment(), Token::ScanIdNumber(), Token::ScanPragma(), Token::ScanText(), VPKFile::SendAllNames(), Server(), SetDirShortId(), SetFPDirShortId(), SetFPFileShortId(), CacheS::SetHitFilter(), SourceOrDerived::setMetadataRootLocalName(), ParCacheC::SetServerHost(), ShortIdBlockCheckpoint(), SourceOrDerived::shortIdToName(), TextVC::Sid(), SourceWeed(), SRPC_Call_Stats::SRPC_Call_Stats(), MultiSRPC::Start(), LSWorker::Start(), CacheWorker::Start(), Lock_Timing_Recorder::start_new_file(), CacheS::StartMark(), ShortIdStock::stockboy(), TextVC::TextC::TextC(), Thread1(), Thread2(), Thread3(), ThreadDataCreate(), Timing_Recorder_exit_cleanup(), TextVC::TName(), ReadersWritersLock::tryRead(), ReadersWritersLock::tryWrite(), UniqueId(), Debug::Unlock(), Unpickle(), PickleC::UnpickleVal(), UpdateOrphans(), ValType(), VestaConfig::get(), VestaConfig::get_location(), VestaConfig::is_set(), VestaConfig::section_vars(), VestaConfig::sections(), VestaConfig::set_location(), CacheS::VToSCache(), children::wait_for(), ChkptWorker::WaitUntilDone(), CacheS::WeederRecovering(), EmptyPKLog::Write(), VMemPool::writeCheckpoint(), Lock_Timing_Recorder::~Lock_Timing_Recorder(), and ReadersWritersLock::~ReadersWritersLock().


Friends And Related Function Documentation

friend class cond [friend]
 

Definition at line 42 of file Thread.H.


Member Data Documentation

pthread_mutex_t Basics::mutex::m [private]
 

Definition at line 64 of file Thread.H.

char Basics::mutex::pad[64] [private]
 

Definition at line 67 of file Thread.H.


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:18 2006 for Vesta by  doxygen 1.4.2