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

Basics::thread Class Reference

#include <Thread.H>

List of all members.

Public Types

typedef void *(* StartRoutine )(void *arg)

Public Member Functions

 thread () throw ()
 thread (const thread &other) throw ()
 ~thread () throw ()
void fork (StartRoutine proc, void *arg, const thread_attr &attr) throw ()
void fork (StartRoutine proc, void *arg) throw ()
void fork (StartRoutine proc, void *arg, long stacksize) throw ()
void detach () throw ()
void fork_and_detach (StartRoutine proc, void *arg, const thread_attr &attr) throw ()
void fork_and_detach (StartRoutine proc, void *arg) throw ()
void fork_and_detach (StartRoutine proc, void *arg, long stacksize) throw ()
void * join () throw ()
threadoperator= (const thread &other) throw ()
void get_sched_param (int &policy, int &sched_priority) throw ()
void set_sched_param (int policy, int sched_priority) throw ()

Static Public Member Functions

static void pause (int secs, int usecs=0) throw ()
static thread self () throw ()

Private Member Functions

 thread (pthread_t existing) throw ()
void fork_inner (StartRoutine proc, void *arg, const thread_attr &attr) throw ()

Private Attributes

pthread_t t


Member Typedef Documentation

typedef void*(* Basics::thread::StartRoutine)(void *arg)
 

Definition at line 146 of file Thread.H.


Constructor & Destructor Documentation

Basics::thread::thread  )  throw () [inline]
 

Definition at line 142 of file Thread.H.

Referenced by Basics::thread::self().

Basics::thread::thread const thread other  )  throw () [inline]
 

Definition at line 143 of file Thread.H.

Basics::thread::~thread  )  throw () [inline]
 

Definition at line 144 of file Thread.H.

Basics::thread::thread pthread_t  existing  )  throw () [inline, private]
 

Definition at line 205 of file Thread.H.


Member Function Documentation

void Basics::thread::detach  )  throw ()
 

void Basics::thread::fork StartRoutine  proc,
void *  arg,
long  stacksize
throw () [inline]
 

Definition at line 156 of file Thread.H.

References Basics::thread_attr::set_stacksize().

void Basics::thread::fork StartRoutine  proc,
void *  arg
throw () [inline]
 

Definition at line 151 of file Thread.H.

void Basics::thread::fork StartRoutine  proc,
void *  arg,
const thread_attr attr
throw ()
 

Referenced by ClientProc(), LimService::Forked_Run(), VDirVolatileRoot::init(), main(), MastershipInit2(), nfsd_init(), PrimInit(), ShortIdServerInit2(), and ShortIdStock::ShortIdStock().

void Basics::thread::fork_and_detach StartRoutine  proc,
void *  arg,
long  stacksize
throw () [inline]
 

Definition at line 175 of file Thread.H.

References Basics::thread_attr::set_stacksize().

void Basics::thread::fork_and_detach StartRoutine  proc,
void *  arg
throw () [inline]
 

Definition at line 170 of file Thread.H.

void Basics::thread::fork_and_detach StartRoutine  proc,
void *  arg,
const thread_attr attr
throw ()
 

Referenced by CacheS::CacheS(), Client(), children::init(), Leases::Leases(), main(), and StartRenewLeaseThread().

void Basics::thread::fork_inner StartRoutine  proc,
void *  arg,
const thread_attr attr
throw () [private]
 

void Basics::thread::get_sched_param int &  policy,
int &  sched_priority
throw ()
 

void* Basics::thread::join  )  throw ()
 

Referenced by ClientProc(), main(), and Server().

thread& Basics::thread::operator= const thread other  )  throw () [inline]
 

Definition at line 187 of file Thread.H.

static void Basics::thread::pause int  secs,
int  usecs = 0
throw () [static]
 

Referenced by CacheS_DoFreeMPKFiles(), children::killer_body(), Leases_TimeoutProc(), main(), SMultiPKFile::PauseDeletionThread(), Thread2(), Thread3(), and wait_for_server().

static thread Basics::thread::self  )  throw () [static]
 

Referenced by main().

void Basics::thread::set_sched_param int  policy,
int  sched_priority
throw ()
 


Member Data Documentation

pthread_t Basics::thread::t [private]
 

Definition at line 206 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