Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Crash_On_Write / Crash_Task.h
blobc9e4516629e1fc3b61b9fa5b04c71582579efc7d
2 #ifndef CRASH_TASK_H
3 #define CRASH_TASK_H
4 #include /**/ "ace/pre.h"
6 #include "ace/Task.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
9 # pragma once
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 /// Implement a Task to run the experiments using multiple threads.
13 class Crash_Task : public ACE_Task_Base
15 public:
16 /// Constructor
17 Crash_Task (ACE_Thread_Manager *thr_mgr,
18 const ACE_Time_Value &running_time);
20 /// Thread entry point
21 int svc ();
23 private:
24 /// Total running time for each thread
25 ACE_Time_Value running_time_;
28 #include /**/ "ace/post.h"
29 #endif /* CRASH_TASK_H */