Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / Threads / TSS_Obj.h
blob0940110cab77c357fb63cda5b73645f7d62e4ca7
2 //=============================================================================
3 /**
4 * @file TSS_Obj.h
6 * This program tests various features of ACE_Thread and the
7 * thread-specific storage variant of <ACE_SingletonEx>.
9 * @author Prashant Jain and Doug Schmidt
11 //=============================================================================
14 #include "ace/Atomic_Op.h"
15 #include "ace/Synch_Traits.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 /**
22 * @class TSS_Obj
24 * @brief This object is stored in thread-specific storage.
26 class TSS_Obj
28 public:
29 TSS_Obj ();
30 ~TSS_Obj ();
32 private:
33 static ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> count_;