ders::cond_var Class Reference

Interface that defines implementation independent condition variable. More...

#include <thread.hpp>

Inheritance diagram for ders::cond_var:

ders::destroyable

List of all members.

Public Member Functions

void wait ()
virtual void wait (long timeout)=0
virtual void notify ()=0
virtual void notify_all ()=0
virtual void destroy (mem_pool &mp2)=0

Static Public Attributes

static const long infinite = -1

Protected Member Functions

void operator delete (void *ptr, size_t size)

Static Protected Member Functions

template<class T>
static void destroy_this (T *ptr, mem_pool &mp2)


Detailed Description

Interface that defines implementation independent condition variable.

Definition at line 91 of file thread.hpp.


Member Function Documentation

void ders::cond_var::wait (  )  [inline]

Definition at line 95 of file thread.hpp.

00095 { wait(infinite); }

virtual void ders::cond_var::wait ( long  timeout  )  [pure virtual]

virtual void ders::cond_var::notify (  )  [pure virtual]

virtual void ders::cond_var::notify_all (  )  [pure virtual]

template<class T>
void ders::destroyable::destroy_this ( T *  ptr,
mem_pool mp2 
) [inline, static, protected, inherited]

Definition at line 47 of file destroy.hpp.

00048 {
00049  assert(typeid(*ptr)==typeid(T));
00050 
00051  ptr->~T();
00052  mp2.deallocate(ptr, sizeof(T));
00053 }

void ders::destroyable::operator delete ( void *  ptr,
size_t  size 
) [inline, protected, inherited]

Definition at line 39 of file destroy.hpp.

00039 { hard_assert(false); }

virtual void ders::destroyable::destroy ( mem_pool mp2  )  [pure virtual, inherited]


Member Data Documentation

const long ders::cond_var::infinite = -1 [static]

Definition at line 93 of file thread.hpp.


The documentation for this class was generated from the following file:

Generated on Tue Dec 8 11:35:33 2009 for derslib by  doxygen 1.5.5