18 #ifndef _LOG4CXX_HELPERS_SYNCHRONIZED_H 19 #define _LOG4CXX_HELPERS_SYNCHRONIZED_H 20 #include <log4cxx/log4cxx.h> 23 typedef struct apr_thread_mutex_t apr_thread_mutex_t;
36 synchronized(
const Mutex& mutex);
37 synchronized(apr_thread_mutex_t* mutex);
44 synchronized(
const synchronized&);
45 synchronized& operator=(
const synchronized&);
59 class LOG4CXX_EXPORT synchronized_read
62 synchronized_read(
const RWMutex& mutex);
69 synchronized_read(
const synchronized_read&);
70 synchronized_read& operator=(
const synchronized_read&);
82 class LOG4CXX_EXPORT synchronized_write
85 synchronized_write(
const RWMutex& mutex);
86 ~synchronized_write();
92 synchronized_write(
const synchronized_write&);
93 synchronized_write& operator=(
const synchronized_write&);
98 #define LOCK_R synchronized_read 99 #define LOCK_W synchronized_write 103 #define LOCK_R synchronized 104 #define LOCK_W synchronized 108 #endif //_LOG4CXX_HELPERS_SYNCHRONIZED_H
utility class for objects multi-thread synchronization.
Definition: synchronized.h:33
Definition: appender.h:33