From 06ce59d348e30ce3da6106943c2d5660abc4c219 Mon Sep 17 00:00:00 2001 From: nobody Date: Sun, 23 May 1999 18:28:55 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'IR-base'. --- tests/Thread_Manager_Test.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tests/Thread_Manager_Test.h (limited to 'tests/Thread_Manager_Test.h') diff --git a/tests/Thread_Manager_Test.h b/tests/Thread_Manager_Test.h new file mode 100644 index 00000000000..c9885c33ea7 --- /dev/null +++ b/tests/Thread_Manager_Test.h @@ -0,0 +1,45 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// tests +// +// = FILENAME +// Thread_Manager_Test.h +// +// = DESCRIPTION +// This file contains class definitions needed for template +// instnatiation in the Thread_Manager_Test.cpp file. +// +// = AUTHOR +// Prashant Jain and Doug C. Schmidt +// +// ============================================================================ + +#ifndef __THREAD_MANAGER_TEST_H +#define __THREAD_MANAGER_TEST_H + + +class Signal_Catcher + // = TITLE + // Keeps track of whether a thread has been signaled. +{ +public: + Signal_Catcher (void): signaled_ (0) {} + + sig_atomic_t signaled (void) + { + return this->signaled_; + } + + void signaled (sig_atomic_t s) + { + this->signaled_ = s; + } + +private: + sig_atomic_t signaled_; +}; + +#endif /* __THREAD_MANAGER_TEST_H */ -- cgit v1.2.1