blob: 162b4964d2df4ba2ff11e7ba5a35fddef7c608f8 (
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
|
/*
* 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
*
* Scheduler-based signal handlers
*
* $Id$
* $CurLog$
*/
#ifndef IvlSignal_H_
#define IvlSignal_H_
#ifdef __GNUG__
#pragma interface
#endif
#include "ivl/Signal.h"
class IvlBaseScheduledHandler : public IvlBaseSignalHandler {
friend class IvlBaseScheduler;
protected:
IvlBaseScheduler& MyScd;
void Handle ();
public:
IvlBaseScheduledHandler (IvlBaseScheduler&, int);
virtual ~IvlBaseScheduledHandler ();
protected:
/*?public?*/
virtual void DeferredHandle (int);
};
class IvlScheduledHandler : public IvlBaseScheduledHandler {
protected:
void (*Handler) (int, int);
void DeferredHandle (int);
public:
IvlScheduledHandler (IvlBaseScheduler&, int, void (*) (int, int));
~IvlScheduledHandler ();
};
#endif /* IvlSignal_H_ */
|