-*- Mode: Modula-3 -*-
*
* For information about this program, contact Blair MacIntyre
* (bm@cs.columbia.edu) or Steven Feiner (feiner@cs.columbia.edu)
* at the Computer Science Dept., Columbia University,
* 1214 Amsterdam Ave. Mailstop 0401, New York, NY, 10027.
*
* Copyright (C) 1995, 1996 by The Trustees of Columbia University in the
* City of New York. Blair MacIntyre, Computer Science Department.
* See file COPYRIGHT-COLUMBIA for details.
*
* Author : Blair MacIntyre
* Created On : Tue May 23 17:57:29 1995
* Last Modified By: Blair MacIntyre
* Last Modified On: Thu Nov 21 17:50:08 1996
* Update Count : 13
*
* $Source: /usr/cvs/cm3/m3-comm/events/src/EventWrF.i3,v $
* $Date: 2001-12-02 00:20:38 $
* $Author: wagner $
* $Revision: 1.2 $
*
* $Log: EventWrF.i3,v $
* Revision 1.2 2001-12-02 00:20:38 wagner
* add copyright notes, fix overrides for cm3, and make everything compile
*
* added: events/COPYRIGHT-COLUMBIA
* added: events/src/COPYRIGHT-COLUMBIA
* modified: events/src/Event.i3
* modified: events/src/Event.m3
* modified: events/src/EventConn.i3
* modified: events/src/EventConn.m3
* modified: events/src/EventCounter.i3
* modified: events/src/EventCounter.m3
* modified: events/src/EventHandle.i3
* modified: events/src/EventIO.i3
* modified: events/src/EventNumber.i3
* modified: events/src/EventNumber.m3
* modified: events/src/EventNumberF.i3
* modified: events/src/EventPort.i3
* modified: events/src/EventPort.m3
* modified: events/src/EventProtocol.i3
* modified: events/src/EventRd.i3
* modified: events/src/EventRd.m3
* modified: events/src/EventSpaceID.i3
* modified: events/src/EventSpaceID.m3
* modified: events/src/EventStubLib.i3
* modified: events/src/EventStubLib.m3
* modified: events/src/EventWireRep.i3
* modified: events/src/EventWireRep.m3
* modified: events/src/EventWr.i3
* modified: events/src/EventWr.m3
* modified: events/src/EventWrF.i3
* modified: events/src/HostInfo.i3
* modified: events/src/HostInfo.m3
* modified: events/src/RdWrMutex.i3
* modified: events/src/RdWrMutex.m3
* modified: events/src/Work.i3
* modified: events/src/WorkerPool.i3
* modified: events/src/WorkerPool.m3
* modified: events/src/Zombie.i3
* modified: events/src/m3makefile
* modified: events/src/m3overrides
*
* Revision 1.1.1.1 2001/12/02 00:06:45 wagner
* Blair MacIntyre's events library
*
* Revision 1.2 1996/11/21 22:50:17 bm
* fixed header
*
*
* HISTORY
INTERFACE EventWrF;
IMPORT EventWr;
REVEAL
EventWr.T <: T;
TYPE
T = EventWr.Public OBJECT
cur_buf : INTEGER := 0; (* index of the active buffer *)
max_len : INTEGER := 0; (* largest value of wr.cur ever seen *)
n_buffers : INTEGER := 0; (* # of allocated buffers *)
buffers : BufferList := NIL;(* overflow array *)
END;
TYPE
Buffer = REF ARRAY OF CHAR;
BufferList = REF ARRAY OF Buffer;
CONST
(* These are a multiple of 64-bits, since all the event data will be
64-bit aligned. *)
Slop = 24; (* enough so that a buffer doesn't overflow an allocator page *)
BufferSize = 1024 - Slop;
END EventWrF.