Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / tests / Refcounted_Auto_Ptr_Test.h
blob62ba56def9813f9e0d3bc66ed8f085db880c38b4
2 //=============================================================================
3 /**
4 * @file Refcounted_Auto_Ptr_Test.h
6 * Define class needed for generating templates. IBM C++ requires this to
7 * be in its own file for auto template instantiation.
9 * @author Steve Huston <shuston@riverace.com>
11 //=============================================================================
14 #ifndef ACE_TESTS_REFCOUNTED_AUTO_PTR_TEST_H
15 #define ACE_TESTS_REFCOUNTED_AUTO_PTR_TEST_H
17 #include "ace/Atomic_Op.h"
18 #include "ace/Synch.h"
20 struct Printer
22 Printer (const char *message);
23 ~Printer ();
25 void print ();
27 const char *message_;
28 unsigned int which_;
29 static ACE_Atomic_Op<ACE_SYNCH_MUTEX, unsigned int> current_instance_;
30 static ACE_Atomic_Op<ACE_SYNCH_MUTEX, long> instance_count_;
33 #endif /* ACE_TESTS_REFCOUNTED_AUTO_PTR_TEST_H */