summaryrefslogtreecommitdiff
path: root/tests/Thread_Manager_Test.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Thread_Manager_Test.h')
-rw-r--r--tests/Thread_Manager_Test.h45
1 files changed, 45 insertions, 0 deletions
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 */