~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/tao/Synch_Refcountable.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// This may look like C, but it's really
2
 
// -*- C++ -*-
3
 
 
4
 
//=============================================================================
5
 
/**
6
 
 *  @file Synch_Refcountable.h
7
 
 *
8
 
 *  Synch_Refcountable.h,v 1.4 2003/11/10 00:02:09 bala Exp
9
 
 *
10
 
 *  Definition for a synchronised refcountable interface.
11
 
 *
12
 
 *  @author  Fred Kuhns <fredk@cs.wustl.edu>
13
 
 */
14
 
//=============================================================================
15
 
 
16
 
#ifndef TAO_SYNCH_REFCOUNTABLE_H
17
 
#define TAO_SYNCH_REFCOUNTABLE_H
18
 
 
19
 
#include /**/ "ace/pre.h"
20
 
#include "ace/Refcountable.h"
21
 
 
22
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
23
 
# pragma once
24
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
25
 
 
26
 
 
27
 
#include "TAO_Export.h"
28
 
 
29
 
class ACE_Lock;
30
 
 
31
 
/**
32
 
 * @class TAO_Synch_Refcountable
33
 
 *
34
 
 * @brief Definition for a synchronised refcountable interface.
35
 
 */
36
 
class TAO_Export TAO_Synch_Refcountable : private ACE_Refcountable
37
 
{
38
 
public:
39
 
  virtual ~TAO_Synch_Refcountable (void);
40
 
 
41
 
  int increment (void);
42
 
  int decrement (void);
43
 
 
44
 
  int refcount (void) const;
45
 
 
46
 
protected:
47
 
  TAO_Synch_Refcountable (ACE_Lock *lock, int refcount);
48
 
 
49
 
  ACE_Lock *refcount_lock_;
50
 
};
51
 
 
52
 
 
53
 
#if defined (__ACE_INLINE__)
54
 
# include "Synch_Refcountable.inl"
55
 
#endif /* __ACE_INLINE__ */
56
 
 
57
 
#include /**/ "ace/post.h"
58
 
 
59
 
#endif /*TAO_SYNCH_REFCOUNTABLE*/