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

Thread.C File Reference

#include "pthreadcompat.h"
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <sys/time.h>
#include "Basics.H"
#include "ThreadStart.H"

Go to the source code of this file.

Defines

#define NSEC_PER_SEC   (1000000000)

Functions

 Basics::mutex::mutex () throw ()
 Basics::mutex::mutex (int type) throw ()
 Basics::mutex::~mutex () throw ()
void Basics::mutex::lock () throw ()
void Basics::mutex::unlock () throw ()
 Basics::cond::cond () throw ()
 Basics::cond::~cond () throw ()
void Basics::cond::wait (mutex &m) throw ()
int Basics::cond::timedwait (mutex &m, struct timespec *abstime) throw ()
void Basics::cond::signal () throw ()
void Basics::cond::broadcast () throw ()
 Basics::thread_attr::thread_attr () throw ()
 Basics::thread_attr::thread_attr (size_t stacksize) throw ()
 Basics::thread_attr::thread_attr (const thread_attr &other) throw ()
 Basics::thread_attr::~thread_attr () throw ()
Basics::thread_attrBasics::thread_attr::operator= (const Basics::thread_attr &other) throw ()
void Basics::thread_attr::set_guardsize (size_t guardsize) throw ()
size_t Basics::thread_attr::get_guardsize () const throw ()
void Basics::thread_attr::set_stacksize (size_t stacksize) throw ()
size_t Basics::thread_attr::get_stacksize () const throw ()
void Basics::thread::fork_inner (StartRoutine proc, void *arg, const thread_attr &attr) throw ()
void Basics::thread::fork (StartRoutine proc, void *arg, const thread_attr &attr) throw ()
void Basics::thread::detach () throw ()
void Basics::thread::fork_and_detach (StartRoutine proc, void *arg, const Basics::thread_attr &attr) throw ()
void * Basics::thread::join () throw ()
void Basics::thread::get_sched_param (int &policy, int &sched_priority) throw ()
void Basics::thread::set_sched_param (int policy, int sched_priority) throw ()
void Basics::thread::pause (int secs, int usecs) throw ()
Basics::thread Basics::thread::self () throw ()


Define Documentation

#define NSEC_PER_SEC   (1000000000)
 

Definition at line 44 of file Thread.C.

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


Function Documentation

void Basics::cond::broadcast  )  throw ()
 

Definition at line 145 of file Thread.C.

Basics::cond::cond  )  throw ()
 

Definition at line 111 of file Thread.C.

void Basics::cond::signal  )  throw ()
 

Definition at line 139 of file Thread.C.

int Basics::cond::timedwait mutex &  m,
struct timespec *  abstime
throw ()
 

Definition at line 126 of file Thread.C.

void Basics::cond::wait mutex &  m  )  throw ()
 

Definition at line 120 of file Thread.C.

Basics::cond::~cond  )  throw ()
 

Definition at line 117 of file Thread.C.

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

Definition at line 94 of file Thread.C.

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

Definition at line 76 of file Thread.C.

Basics::mutex::mutex  )  throw ()
 

Definition at line 70 of file Thread.C.

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

Definition at line 100 of file Thread.C.

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

Definition at line 91 of file Thread.C.

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

Definition at line 339 of file Thread.C.

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

Definition at line 332 of file Thread.C.

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

Definition at line 345 of file Thread.C.

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

Definition at line 308 of file Thread.C.

References NEW, Basics::ThreadStart_Callback(), and Basics::ThreadStart_WaitForChild().

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

Definition at line 361 of file Thread.C.

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

Definition at line 353 of file Thread.C.

void Basics::thread::pause int  secs,
int  usecs
throw ()
 

Definition at line 394 of file Thread.C.

References Basics::mutex::lock(), NSEC_PER_SEC, and Basics::cond::timedwait().

Basics::thread Basics::thread::self  )  throw ()
 

Definition at line 430 of file Thread.C.

References Basics::thread::thread().

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

Definition at line 372 of file Thread.C.

size_t Basics::thread_attr::get_guardsize  )  const throw ()
 

Definition at line 226 of file Thread.C.

size_t Basics::thread_attr::get_stacksize  )  const throw ()
 

Definition at line 241 of file Thread.C.

Basics::thread_attr& Basics::thread_attr::operator= const Basics::thread_attr other  )  throw ()
 

Definition at line 202 of file Thread.C.

void Basics::thread_attr::set_guardsize size_t  guardsize  )  throw ()
 

Definition at line 219 of file Thread.C.

References max().

void Basics::thread_attr::set_stacksize size_t  stacksize  )  throw ()
 

Definition at line 234 of file Thread.C.

References max().

Basics::thread_attr::thread_attr const thread_attr &  other  )  throw ()
 

Definition at line 178 of file Thread.C.

Basics::thread_attr::thread_attr size_t  stacksize  )  throw ()
 

Definition at line 167 of file Thread.C.

Basics::thread_attr::thread_attr  )  throw ()
 

Definition at line 158 of file Thread.C.

References Basics::thread_attr::get_guardsize(), and Basics::thread_attr::set_guardsize().

Basics::thread_attr::~thread_attr  )  throw ()
 

Definition at line 196 of file Thread.C.


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