From 2455534347596bd4ccf415c9cdf6d2e42a98fb72 Mon Sep 17 00:00:00 2001 From: sc Date: Mon, 4 Dec 2000 13:23:22 +0000 Subject: IvlFilDes -> IvlFd --- comm/Scheduler.cc | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'comm/Scheduler.cc') 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]; -- cgit v1.1