summaryrefslogtreecommitdiff
path: root/comm/Scheduler.cc
diff options
context:
space:
mode:
authorsc2000-12-04 13:23:22 +0000
committersc2000-12-04 13:23:22 +0000
commit2455534347596bd4ccf415c9cdf6d2e42a98fb72 (patch)
tree09379b262ce739bfa86cf9c7610c83b471b89ffc /comm/Scheduler.cc
parentee21a6940d4a8edb758187352ae717bbe7b1b825 (diff)
downloadivy-league-2455534347596bd4ccf415c9cdf6d2e42a98fb72.zip
ivy-league-2455534347596bd4ccf415c9cdf6d2e42a98fb72.tar.gz
ivy-league-2455534347596bd4ccf415c9cdf6d2e42a98fb72.tar.bz2
ivy-league-2455534347596bd4ccf415c9cdf6d2e42a98fb72.tar.xz
IvlFilDes -> IvlFd
Diffstat (limited to 'comm/Scheduler.cc')
-rw-r--r--comm/Scheduler.cc22
1 files changed, 9 insertions, 13 deletions
diff --git a/comm/Scheduler.cc b/comm/Scheduler.cc
index 075c461..9140abe 100644
--- a/comm/Scheduler.cc
+++ b/comm/Scheduler.cc
@@ -1,21 +1,17 @@
/*
- * The Unix Channel
+ * Ivy League
*
- * by Michel Beaudouin-Lafon
+ * Channel sets, or multiplexers, or schedulers
*
- * Copyright 1990-1997
+ * Copyright 1990-2000
* Laboratoire de Recherche en Informatique (LRI)
+ * Centre d'Etudes de la Navigation Aerienne (CENA)
*
- * Channel sets, or multiplexers
+ * original code by Michel Beaudouin-Lafon,
+ * heavily modified by Stephane Chatty and Stephane Sire
*
* $Id$
- * $CurLog$
- * Amelioration de la gestion des timers dans Scan
- * Amelioration de la gestion des timers dans LoopScan
- * Modification du mecanisme d'ajout d'un Channel
- * Remplacement du HandleSelect par un systeme de Hook
- * Integration avec IvlBaseMultiplexer
- * Meilleures verifications de NFILE, en attendant mieux
+ *
*/
#include "Scheduler.h"
@@ -89,7 +85,7 @@ differences. See the class \typ{IvlScheduler} for a ``pure \uch''
implementation of multiplexers.
Note that the functions that take an integer file descriptor as
-argument can be passed a \typ{FILDES} or a \typ{IvlChannel} because
+argument can be passed a \typ{IvlFd} or a \typ{IvlChannel} because
the corresponding conversion operators are defined.
The way to Add/Remove a channel from a multiplexer is to call
@@ -152,7 +148,7 @@ working on it at a time.
bool
IvlBaseScheduler :: Add (IvlChannel* chan)
{
- int fd = chan->FilDes ();
+ int fd = chan->GetFd ();
if (fd < 0 || fd >= NFILE)
return false;
IvlChannel* ochan = Channels [fd];