10#ifndef _LOG4CPP_THREADING_BOOSTTHREADS_HH
11#define _LOG4CPP_THREADING_BOOSTTHREADS_HH
13#include <boost/thread/mutex.hpp>
14#include <boost/thread/thread.hpp>
15#include <boost/thread/tss.hpp>
25 sprintf(buffer,
"not available");
26 return std::string(buffer);
34 inline T*
get()
const {
35 return _localData.get();
39 return _localData.get();
42 return *_localData.get();
46 return _localData.release();
49 inline void reset(T* p = NULL) {
54 boost::thread_specific_ptr<T> _localData;
Definition PThreads.hh:28
definition of ScopedLock;
Definition PThreads.hh:57
ThreadLocalDataHolder()
Definition DummyThreads.hh:36
T * operator->() const
Definition BoostThreads.hh:38
T & operator*() const
Definition BoostThreads.hh:41
T * get() const
Definition BoostThreads.hh:34
void reset(T *p=NULL)
Definition BoostThreads.hh:49
T * release()
Definition BoostThreads.hh:45
Definition BoostThreads.hh:21
static std::string getThreadId()
Return an identifier for the current thread.
Definition BoostThreads.hh:22
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16