blob: f5a7b0572974ac09e465b986c51bdcfce4b3fd14 (
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
46
|
/*
* The Unix Channel
*
* by Michel Beaudouin-Lafon and Stephane Chatty
*
* Copyright 1990-1993
* Laboratoire de Recherche en Informatique (LRI)
* Centre d'Etudes de la Navigation Aerienne
*
* Multiplexer-based signal handlers
*
* $Id$
* $CurLog$
*/
#ifndef UchSignal_H_
#define UchSignal_H_
#include "ccu/Signal.h"
class UchBaseSignalHandler : public CcuBaseSignalHandler {
friend class UchBaseMultiplexer;
protected:
UchBaseMultiplexer& MyMpx;
void Handle ();
virtual void DeferredHandle (int);
public:
UchBaseSignalHandler (UchBaseMultiplexer&, int);
virtual ~UchBaseSignalHandler ();
};
class UchSignalHandler : public UchBaseSignalHandler {
protected:
void (*Handler) (int, int);
void DeferredHandle (int);
public:
UchSignalHandler (UchBaseMultiplexer&, int, void (*) (int, int));
~UchSignalHandler ();
};
#endif /* UchSignal_H_ */
|