SVDrawMonitorImpl.mesa
Last edited by Bier on August 19, 1984 8:13:20 pm PDT
Copyright © 1984 by Xerox Corporation. All rights reserved.
Contents: Only one viewer can work on drawing a scene at a time since the display list caches viewpoint dependent information.
DIRECTORY
SVDrawMonitor;
SVDrawMonitorImpl: MONITOR
EXPORTS SVDrawMonitor =
BEGIN
OKToDrawScene: CONDITION;
SceneFree: BOOLTRUE;
PrepareToDrawScene: PUBLIC ENTRY PROC [] = {
WHILE NOT SceneFree DO
WAIT OKToDrawScene;
ENDLOOP;
SceneFree ← FALSE;
};
DoneDrawingScene: PUBLIC ENTRY PROC [] = {
SceneFree ← TRUE;
NOTIFY OKToDrawScene;
};
END.