summaryrefslogtreecommitdiff
path: root/comm/XtMultiplexer.cc
diff options
context:
space:
mode:
authorsc2000-11-28 17:07:47 +0000
committersc2000-11-28 17:07:47 +0000
commitee937667fd0ecd82faab4c88d756b906fb625f1a (patch)
tree19e679318b5cb87e8be1a05a7bbc9ba5568d0814 /comm/XtMultiplexer.cc
parent1326b11d65f7020f5f6c691305d2c090b064bd04 (diff)
downloadivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.zip
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.gz
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.bz2
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.xz
Integration into IvyLeague
Uvh -> Ivl Multiplexer.* is renamed into Scheduler.* A few name conflicts in the merger with ex-DNN have been solved Imakefile is replaced by Makefile Created InetAddress.* and UnixAddress.* from Address.* Created IrdaAddress.* OLD/TextStream has been updated
Diffstat (limited to 'comm/XtMultiplexer.cc')
-rw-r--r--comm/XtMultiplexer.cc36
1 files changed, 17 insertions, 19 deletions
diff --git a/comm/XtMultiplexer.cc b/comm/XtMultiplexer.cc
index fbd49b5..f20894d 100644
--- a/comm/XtMultiplexer.cc
+++ b/comm/XtMultiplexer.cc
@@ -16,15 +16,14 @@
#include "XtMultiplexer.h"
#include "error.h"
-UchXtMultiplexer :: UchXtMultiplexer ()
-: UchBaseMultiplexer ()
+IvlXtMultiplexer :: IvlXtMultiplexer ()
+: IvlBaseMultiplexer ()
{
memset (ReadId, 0, NFILE * sizeof (XtInputId));
memset (WriteId, 0, NFILE * sizeof (XtInputId));
}
-
-UchXtMultiplexer :: ~UchXtMultiplexer ()
+IvlXtMultiplexer :: ~IvlXtMultiplexer ()
{
}
@@ -32,21 +31,21 @@ UchXtMultiplexer :: ~UchXtMultiplexer ()
static void
inputCB (XtPointer client_data, int*, XtInputId*)
{
- UchChannel* chan = (UchChannel*) client_data;
+ IvlChannel* chan = (IvlChannel*) client_data;
chan->HandleRead ();
}
static void
outputCB (XtPointer client_data, int*, XtInputId*)
{
- UchChannel* chan = (UchChannel*) client_data;
+ IvlChannel* chan = (IvlChannel*) client_data;
chan->HandleWrite ();
}
void
-UchXtMultiplexer :: SetMasks (int fd, IOMODE mode)
+IvlXtMultiplexer :: SetMasks (int fd, IOMODE mode)
{
- UchChannel* ch = Channels [fd];
+ IvlChannel* ch = Channels [fd];
if (!ch)
return;
@@ -78,42 +77,41 @@ UchXtMultiplexer :: SetMasks (int fd, IOMODE mode)
}
void
-UchXtMultiplexer :: FireTimers (void* mpx, XtIntervalId*)
+IvlXtMultiplexer :: FireTimers (void* mpx, XtIntervalId*)
{
- CcuCoreTimer::Fire (((UchXtMultiplexer*) mpx)->GetTimerSet ());
+ IvlCoreTimer::Fire (((IvlXtMultiplexer*) mpx)->GetTimerSet ());
}
void
-UchXtMultiplexer :: SetTimeOut (Millisecond delay)
+IvlXtMultiplexer :: SetTimeOut (Millisecond delay)
{
/* should replace with XtAppAddTimeOut */
- TimeOut = XtAddTimeOut (delay, &UchXtMultiplexer::FireTimers, this);
+ TimeOut = XtAddTimeOut (delay, &IvlXtMultiplexer::FireTimers, this);
}
void
-UchXtMultiplexer :: SuppressTimeOut ()
+IvlXtMultiplexer :: SuppressTimeOut ()
{
XtRemoveTimeOut (TimeOut);
TimeOut = 0;
}
void
-UchXtMultiplexer :: FireSignals (void* mpx)
+IvlXtMultiplexer :: FireSignals (void* mpx)
{
- ((UchXtMultiplexer*) mpx)->HandleDeferredSignals ();
+ ((IvlXtMultiplexer*) mpx)->HandleDeferredSignals ();
}
-
void
-UchXtMultiplexer :: AddSignalHook ()
+IvlXtMultiplexer :: AddSignalHook ()
{
/* should replace with XtAppAddWorkProc */
- XtAddWorkProc ((XtWorkProc) (&UchXtMultiplexer::FireSignals), this);
+ XtAddWorkProc ((XtWorkProc) (&IvlXtMultiplexer::FireSignals), this);
}
MPX_RES
-UchXtMultiplexer :: Loop ()
+IvlXtMultiplexer :: Loop ()
{
XEvent event;
bool waiting = true;