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

TestThread.C File Reference

#include "Basics.H"

Go to the source code of this file.

Functions

void * Thread1 (void *arg)
void * Thread2 (void *arg)
void * Thread3 (void *arg)
int main (void)

Variables

const int Arg1 = 4
const int Res1 = 5
const int PauseSecs = 1
const int MainPause = 4
const int SubPause = 2
Basics::mutex mu


Function Documentation

int main void   ) 
 

Definition at line 79 of file TestThread.C.

References Arg1, Basics::thread::fork(), Basics::thread::fork_and_detach(), Basics::thread::join(), Basics::mutex::lock(), MainPause, NEW, Basics::thread::pause(), Res1, Thread1(), Thread2(), Thread3(), and Basics::mutex::unlock().

void* Thread1 void *  arg  ) 
 

Definition at line 36 of file TestThread.C.

References Arg1, Basics::mutex::lock(), NEW, Res1, and Basics::mutex::unlock().

Referenced by main().

void* Thread2 void *  arg  ) 
 

Definition at line 55 of file TestThread.C.

References Basics::mutex::lock(), Basics::thread::pause(), PauseSecs, and Basics::mutex::unlock().

Referenced by main().

void* Thread3 void *  arg  ) 
 

Definition at line 66 of file TestThread.C.

References Basics::mutex::lock(), Basics::thread::pause(), SubPause, and Basics::mutex::unlock().

Referenced by main().


Variable Documentation

const int Arg1 = 4
 

Definition at line 28 of file TestThread.C.

Referenced by main(), and Thread1().

const int MainPause = 4
 

Definition at line 31 of file TestThread.C.

Referenced by main().

Basics::mutex mu
 

Definition at line 34 of file TestThread.C.

Referenced by CacheS::AddEntry(), CacheS::AddEntryToMPKFile(), CacheS::CacheS(), CacheWorker::CacheWorker(), VMultiPKFile::ChkptForWrite(), CacheS::ChkptUsedCIs(), CacheS::CleanCacheLogEntries(), CacheS::CommitChkpt(), RunTool::do_it(), CacheS::DoCheckpoint(), EmptyPKLog::EmptyPKLog(), CacheS::EndMark(), CacheS::FlushCacheLog(), CacheS::FlushGraphLog(), LimService::Forked_Run(), CacheS::FreeVariables(), CacheS::GetCacheId(), CacheS::GetCacheState(), EmptyPKLog::GetEpoch(), LimService::HandleFailure(), Leases::Leases(), LimService::LimService(), VMultiPKFile::LockForWrite(), CacheS::Lookup(), LimService::NewConnection(), PrintEmptyPKLog(), CacheS::RecoverCacheLogEntries(), CacheS::RegisterIdleFlushWorker(), LimService::RegisterIdleWorker(), VMultiPKFile::ReleaseWriteLock(), CacheS::RenewLeases(), VPKFile::SendAllNames(), CacheS::SetHitFilter(), Tool_Relay::setup(), MultiSRPC::Start(), LSWorker::Start(), CacheWorker::Start(), CacheS::StartMark(), VMultiPKFile::ToSCache(), CacheS::VToSCache(), CacheS::WeederRecovering(), and EmptyPKLog::Write().

const int PauseSecs = 1
 

Definition at line 30 of file TestThread.C.

Referenced by Thread2().

const int Res1 = 5
 

Definition at line 29 of file TestThread.C.

Referenced by main(), and Thread1().

const int SubPause = 2
 

Definition at line 32 of file TestThread.C.

Referenced by Thread3().


Generated on Mon May 8 00:49:00 2006 for Vesta by  doxygen 1.4.2