Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Crash_On_Write / Crash_Task.h
blobb4d9a7b63b43ef17cbad21289c8394a7be683799
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 (void);
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 */