thread.hpp File Reference

Defines interfaces thread , mutex , cond_var , barrier_listener and classes auto_mutex , barrier and functions new_thread(), new_mutex(), new_long_mutex(), new_cond_var(), new_barrier(). More...

#include <ders/config.hpp>
#include <ders/sh_ptr.hpp>

Go to the source code of this file.

Namespaces

namespace  ders

Classes

class  ders::thread
 Interface that defines implementation independent thread. More...
class  ders::mutex
 Interface that defines implementation independent mutex. More...
class  ders::auto_mutex
 Helper class for exception-safe mutex locking. More...
class  ders::cond_var
 Interface that defines implementation independent condition variable. More...
class  ders::barrier_listener
 Interface for classes that listen for on_release() barrier events. More...
class  ders::barrier
 Represents implementation independent thread barrier. More...

Typedefs

typedef sh_ptr< thread > ders::sh_thread
typedef sh_ptr< mutex > ders::sh_mutex
typedef sh_ptr< cond_var > ders::sh_cond_var
typedef sh_ptr< barrier > ders::sh_barrier

Functions

sh_thread ders::new_thread (mem_pool &mp, void(*start)(void *), void *arg)
 Creates new thread.
sh_mutex ders::new_mutex (mem_pool &mp)
 Creates new mutex object for usual short term locking.
sh_mutex ders::new_long_mutex (mem_pool &mp)
 Creates new mutex object for long term locking.
sh_cond_var ders::new_cond_var (mem_pool &mp, mutex &mtx)
 Creates new cond_var object.
sh_barrier ders::new_barrier (mem_pool &mp, int cnt)
 Creates new barrier object.


Detailed Description

Defines interfaces thread , mutex , cond_var , barrier_listener and classes auto_mutex , barrier and functions new_thread(), new_mutex(), new_long_mutex(), new_cond_var(), new_barrier().

Definition in file thread.hpp.


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