1
// This may look like C, but it's really
4
//=============================================================================
6
* @file Synch_Refcountable.h
8
* Synch_Refcountable.h,v 1.4 2003/11/10 00:02:09 bala Exp
10
* Definition for a synchronised refcountable interface.
12
* @author Fred Kuhns <fredk@cs.wustl.edu>
14
//=============================================================================
16
#ifndef TAO_SYNCH_REFCOUNTABLE_H
17
#define TAO_SYNCH_REFCOUNTABLE_H
19
#include /**/ "ace/pre.h"
20
#include "ace/Refcountable.h"
22
#if !defined (ACE_LACKS_PRAGMA_ONCE)
24
#endif /* ACE_LACKS_PRAGMA_ONCE */
27
#include "TAO_Export.h"
32
* @class TAO_Synch_Refcountable
34
* @brief Definition for a synchronised refcountable interface.
36
class TAO_Export TAO_Synch_Refcountable : private ACE_Refcountable
39
virtual ~TAO_Synch_Refcountable (void);
44
int refcount (void) const;
47
TAO_Synch_Refcountable (ACE_Lock *lock, int refcount);
49
ACE_Lock *refcount_lock_;
53
#if defined (__ACE_INLINE__)
54
# include "Synch_Refcountable.inl"
55
#endif /* __ACE_INLINE__ */
57
#include /**/ "ace/post.h"
59
#endif /*TAO_SYNCH_REFCOUNTABLE*/