summaryrefslogtreecommitdiff
path: root/cli/state.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-08-07 14:02:29 -0400
committerGitHub <noreply@github.com>2019-08-07 14:02:29 -0400
commite438ac2c74c823882dc9c9ecde2a9e9ed7bcfb4b (patch)
tree480b2daa83e31b26c5d611feff021674d289e492 /cli/state.rs
parent5350abbc7ffdba6d17166fa00ad89e86979a43f7 (diff)
Add op_id throughout op API (#2734)
Removes the magic number hack to switch between flatbuffers and the minimal dispatcher. Adds machinery to pass the op_id through the shared_queue.
Diffstat (limited to 'cli/state.rs')
-rw-r--r--cli/state.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/state.rs b/cli/state.rs
index f4e3d9c84..e1480c027 100644
--- a/cli/state.rs
+++ b/cli/state.rs
@@ -20,6 +20,7 @@ use deno::CoreOp;
use deno::ErrBox;
use deno::Loader;
use deno::ModuleSpecifier;
+use deno::OpId;
use deno::PinnedBuf;
use futures::future::Shared;
use futures::Future;
@@ -104,10 +105,11 @@ impl Deref for ThreadSafeState {
impl ThreadSafeState {
pub fn dispatch(
&self,
+ op_id: OpId,
control: &[u8],
zero_copy: Option<PinnedBuf>,
) -> CoreOp {
- ops::dispatch_all(self, control, zero_copy, self.dispatch_selector)
+ ops::dispatch_all(self, op_id, control, zero_copy, self.dispatch_selector)
}
}