diff options
Diffstat (limited to 'TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.h')
-rw-r--r-- | TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.h b/TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.h deleted file mode 100644 index e1de9332dd5..00000000000 --- a/TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests -// -// = FILENAME -// Util_Thread.h -// -// = AUTHOR -// Andy Gokhale, Sumedh Mungee, and Sergio Flores-Gaitan -// -// ============================================================================ - -#if !defined (UTIL_THREAD_H) -#define UTIL_THREAD_H - -#include "Task_Client.h" - -// This is the arbitrary number that the Util_Thread uses to check for -// primality. -const int CUBIT_ARBIT_NUMBER = 10000019; - -class Util_Thread : public ACE_Task<ACE_SYNCH> -{ - // = TITLE - // The thread that computes utilization. -public: - Util_Thread (Task_State *, - ACE_Thread_Manager *thr_mgr); - // Constructor. - - virtual int svc (void); - // The thread entry point function. - - double get_number_of_computations (void); - // Gets the number of computations the thread was able to perform. - - int done_; - // Indicates whether we're done. - -private: - int run_computations (void); - // Run the computations. - - double number_of_computations_; - // This stores the number of computations performed - // by the Util_Thread so far - - Task_State *ts_; - // Pointer to the Task state. Stores the state - // common to the multiple client threads -}; - -#endif /* !defined (UTIL_THREAD_H) */ |