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

BoostThreads.hh File Reference

#include <log4cpp/Portability.hh>
#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/tss.hpp>
#include <cstdio>
#include <string>

Include dependency graph for BoostThreads.hh:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  log4cpp
namespace  log4cpp::threading

Classes

class  log4cpp::threading::ThreadLocalDataHolder< T >
 This class holds Thread local data of type T, i.e. More...

Typedefs

typedef boost::mutex Mutex
 A simple, non recursive Mutex.
typedef boost::mutex::scoped_lock ScopedLock
 A simple "resource acquisition is initialization" idiom type lock for Mutex.

Functions

std::string getThreadId ()
 returns the thread ID


Typedef Documentation

typedef omni_mutex log4cpp::threading::Mutex
 

A simple, non recursive Mutex.

Yes, this adds a bit of overhead in the for of extra memory, but unfortunately 'void' is illegal.

typedef omni_mutex_lock log4cpp::threading::ScopedLock
 

A simple "resource acquisition is initialization" idiom type lock for Mutex.

Equivalent to Boost.Threads boost::scoped_lock.


Function Documentation

std::string log4cpp::threading::getThreadId  )  [static]
 

returns the thread ID

What these identifiers look like is completely up to the underlying thread library.


Generated on Mon Nov 5 16:17:31 2007 for log4cpp by  doxygen 1.3.9.1