summaryrefslogtreecommitdiff
path: root/tests/Thread_Manager_Test.h
blob: c9885c33ea79c41cf6b51518cc9f35c440fcf3eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 */