summaryrefslogtreecommitdiff
path: root/comm/SignalHandler.h
blob: fdf550f64732e032bb413b9d45775d38e315ef1c (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
47
48
49
/*
 *	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 ();

public:
		UchBaseSignalHandler (UchBaseMultiplexer&, int);
virtual		~UchBaseSignalHandler ();

protected:
/*?public?*/
virtual	void	DeferredHandle (int);
};

class UchSignalHandler : public UchBaseSignalHandler {
protected:
	void	(*Handler) (int, int);
	void	DeferredHandle (int);

public:
		UchSignalHandler (UchBaseMultiplexer&, int, void (*) (int, int));
		~UchSignalHandler ();
};

#endif	/* UchSignal_H_ */