diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-23 18:28:55 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-23 18:28:55 +0000 |
commit | 06ce59d348e30ce3da6106943c2d5660abc4c219 (patch) | |
tree | 193a5f6f9b2e16cb3c722e5ef066dd266832a6bd /tests/Thread_Manager_Test.h | |
parent | 74205f4d54deada413395d34b3dfa99d51c6f7cb (diff) | |
download | ATCD-IR-base.tar.gz |
This commit was manufactured by cvs2svn to create tag 'IR-base'.IR-base
Diffstat (limited to 'tests/Thread_Manager_Test.h')
-rw-r--r-- | tests/Thread_Manager_Test.h | 45 |
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 */ |