/usr/include/tao/Configurable_Refcount.inl is in libtao-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | // -*- C++ -*-
//$Id: Configurable_Refcount.inl 73581 2006-07-17 14:42:07Z elliott_c $
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO_Configurable_Refcount::TAO_Configurable_Refcount (
TAO_Configurable_Refcount::Lock_Type type,
unsigned long value)
: type_ (type),
null_refcount_ (value),
mutex_refcount_ (value)
{
}
ACE_INLINE unsigned long
TAO_Configurable_Refcount::increment (void)
{
switch(this->type_)
{
case TAO_NULL_LOCK:
return this->null_refcount_++;
case TAO_THREAD_LOCK:
default:
return this->mutex_refcount_++;
}
}
ACE_INLINE unsigned long
TAO_Configurable_Refcount::decrement (void)
{
switch(this->type_)
{
case TAO_NULL_LOCK:
return --this->null_refcount_;
case TAO_THREAD_LOCK:
default:
return --this->mutex_refcount_;
}
}
ACE_INLINE unsigned long
TAO_Configurable_Refcount::value (void) const
{
switch(this->type_)
{
case TAO_NULL_LOCK:
return this->null_refcount_.value ();
case TAO_THREAD_LOCK:
default:
return this->mutex_refcount_.value ();
}
}
TAO_END_VERSIONED_NAMESPACE_DECL
|