Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / Threads / TSS_Task.h
blob0804e8f9b82065538a6f0f3632c7311c643d2bd6
1 /* -*- C++ -*- */
4 //=============================================================================
5 /**
6 * @file TSS_Task.h
8 * @author Prashant Jain and Doug Schmidt
9 */
10 //=============================================================================
13 #include "ace/config-all.h"
15 #if !defined (ACE_LACKS_PRAGMA_ONCE)
16 # pragma once
17 #endif /* ACE_LACKS_PRAGMA_ONCE */
19 #include "ace/Token.h"
20 #include "ace/Atomic_Op.h"
22 class Test_Task
24 public:
25 Test_Task ();
26 ~Test_Task ();
28 int open (void *arg);
30 static void *svc (void *arg);
32 static ACE_Atomic_Op<ACE_Token, int> wait_count_;
33 static ACE_Atomic_Op<ACE_Token, int> max_count_;
35 private:
36 static ACE_Atomic_Op<ACE_Token, int> count_;