From 7dc75455415814322b48728954d5a41ceda6972e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 5 Mar 2002 03:17:46 +0000 Subject: [PATCH] Pass the dobject manager to the invoker at construct time. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1084 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/presents/util/Invoker.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/util/Invoker.java b/src/java/com/threerings/presents/util/Invoker.java index 2587ce01d..1b92e8388 100644 --- a/src/java/com/threerings/presents/util/Invoker.java +++ b/src/java/com/threerings/presents/util/Invoker.java @@ -1,5 +1,5 @@ // -// $Id: Invoker.java,v 1.3 2001/10/11 04:07:53 mdb Exp $ +// $Id: Invoker.java,v 1.4 2002/03/05 03:17:46 mdb Exp $ package com.threerings.presents.util; @@ -7,6 +7,7 @@ import com.samskivert.util.LoopingThread; import com.samskivert.util.Queue; import com.threerings.presents.Log; +import com.threerings.presents.server.PresentsDObjectMgr; import com.threerings.presents.server.PresentsServer; /** @@ -80,6 +81,15 @@ public class Invoker extends LoopingThread } } + /** + * Creates an invoker that will post results to the supplied + * distributed object manager. + */ + public Invoker (PresentsDObjectMgr omgr) + { + _omgr = omgr; + } + /** * Posts a unit to this invoker for subsequent invocation on the * invoker's thread. @@ -125,4 +135,7 @@ public class Invoker extends LoopingThread /** The invoker's queue of units to be executed. */ protected Queue _queue = new Queue(); + + /** The object manager with which we're working. */ + protected PresentsDObjectMgr _omgr; }