ACE_Guard
, though it
acquires/releases a read lock automatically (naturally, the
ACE_LOCK
it is instantiated with must support the appropriate
API).
#include <ace/Synch_T.h>
template<class ACE_LOCK> class ACE_Read_Guard : public ACE_Guard<ACE_LOCK> {
public:
ACE_Read_Guard (ACE_LOCK& m);
ACE_Read_Guard (ACE_LOCK &m, int block);
int acquire_read (void);
int acquire (void);
int tryacquire_read (void);
int tryacquire (void);
void dump (void) const;
};
ACE_Read_Guard (ACE_LOCK& m);
ACE_Read_Guard (ACE_LOCK &m, int block);
int acquire_read (void);
int acquire (void);
int tryacquire_read (void);
int tryacquire (void);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE; Declare the dynamic allocation hooks.