summaryrefslogtreecommitdiff
path: root/comm/TimeOut.h
blob: 8364713b36cf63c6519bd9e98864fffc026bc7bd (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
/*
 *	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 timers
 *
 *	$Id$
 *	$CurLog$
 */

#ifndef UchTimeOut_H_
#define UchTimeOut_H_

#include "ccu/Timer.h"

class UchBaseTimeOut : public CcuCoreTimer {
friend	class	UchBaseMultiplexer;

protected:
	UchBaseMultiplexer&	MyMpx;
	void	SetAlarm (Millisecond);
	void	StopAlarm ();

public:	
		UchBaseTimeOut (UchBaseMultiplexer&, Millisecond, int = -1);
		~UchBaseTimeOut ();
};

class UchTimeOut : public UchBaseTimeOut {
protected:
	void	(*Handler) (Millisecond);
	void	Handle (Millisecond);

public:
		UchTimeOut (UchBaseMultiplexer&, Millisecond, void (*) (Millisecond), int = -1);
		~UchTimeOut ();
};

#endif	/* UchBaseOut_H_ */