10 #ifndef _LOG4CPP_THREADING_BOOSTTHREADS_HH 11 #define _LOG4CPP_THREADING_BOOSTTHREADS_HH 14 #include <boost/thread/thread.hpp> 15 #include <boost/thread/mutex.hpp> 16 #include <boost/thread/tss.hpp> 25 sprintf(buffer,
"not available");
26 return std::string(buffer);
29 typedef boost::mutex
Mutex;
34 inline T*
get()
const {
45 inline void reset(T* p = NULL) {
boost::thread_specific_ptr< T > _localData
This class holds Thread local data of type T, i.e.
static std::string getThreadId()
Return an identifier for the current thread.
boost::mutex Mutex
Dummy type 'int' for Mutex.
boost::mutex::scoped_lock ScopedLock
Dummy type 'int' defintion of ScopedLock;.