ders::barrier_listener Class Reference

Interface for classes that listen for on_release() barrier events. More...

#include <thread.hpp>

Inheritance diagram for ders::barrier_listener:


List of all members.

Public Types

enum  action { release_one_false, release_all_false, release_all_true }
 action to take More...

Public Member Functions

virtual action on_release (barrier &bar)=0
virtual void destroy (mem_pool &mp2)=0

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 for classes that listen for on_release() barrier events.

Definition at line 116 of file thread.hpp.

Member Enumeration Documentation

action to take


Definition at line 119 of file thread.hpp.

Member Function Documentation

virtual action ders::barrier_listener::on_release ( barrier bar  )  [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));
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]

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