10#ifndef _LOG4CPP_THREADING_MSTHREADS_HH
11#define _LOG4CPP_THREADING_MSTHREADS_HH
21# define LOG4CPP_UNDEFINE_NOGDI
24# ifndef WIN32_LEAN_AND_MEAN
25# define WIN32_LEAN_AND_MEAN
26# define LOG4CPP_UNDEFINE_WIN32_LEAN_AND_MEAN
31# ifdef LOG4CPP_UNDEFINE_NOGDI
35# ifdef LOG4CPP_UNDEFINE_WIN32_LEAN_AND_MEAN
36# undef WIN32_LEAN_AND_MEAN
58 return &_criticalSection;
69 typedef MSMutex
Mutex;
101 template<
typename T>
class ThreadLocalDataHolder {
#define LOG4CPP_EXPORT
Definition Export.hh:26
#define LOG4CPP_UNIQUE_PTR
Definition Portability.hh:73
A simple object wrapper around CreateMutex() and DeleteMutex()
Definition MSThreads.hh:53
LPCRITICAL_SECTION getCriticalSection()
Definition MSThreads.hh:57
MSMutex()
Definition MSThreads.hh:55
~MSMutex()
Definition MSThreads.hh:56
A simple object wrapper around WaitForSingleObject() and ReleaseMutex()
Definition MSThreads.hh:75
MSScopedLock(MSMutex &mutex)
Definition MSThreads.hh:77
~MSScopedLock()
Definition MSThreads.hh:82
~ThreadLocalDataHolder()
Definition MSThreads.hh:106
ThreadLocalDataHolder()
Definition MSThreads.hh:103
T * operator->() const
Obtains the Object held for the current thread.
Definition MSThreads.hh:123
T & operator*() const
Obtains the Object held for the current thread.
Definition MSThreads.hh:130
T * get() const
Obtains the Object held for the current thread.
Definition MSThreads.hh:113
void reset(T *p=NULL)
Sets a new Object to be held for the current thread.
Definition MSThreads.hh:150
T * release()
Releases the Object held for the current thread.
Definition MSThreads.hh:138
boost::mutex Mutex
Dummy type 'int' for Mutex.
Definition BoostThreads.hh:29
boost::mutex::scoped_lock ScopedLock
Dummy type 'int' defintion of ScopedLock;.
Definition BoostThreads.hh:30
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