summaryrefslogtreecommitdiff
path: root/comm/SignalHandler.h
blob: 1ced6808211b94fd9d5b115c8e1bc66a5b766d3c (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
50
51
52
53
/*
 *	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_

#ifdef __GNUG__
#pragma interface
#endif

#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_ */