From 46cc11ea882681a3b524df97d86442c967bf30e2 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 30 Apr 2012 17:28:14 -0700 Subject: core: Serialize all access to the environment using a weak global task --- src/rt/rust_kernel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rt/rust_kernel.cpp') diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index e041256eaaa..44c6be2421d 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -22,11 +22,11 @@ rust_kernel::rust_kernel(rust_env *env) : sched_reaper(this), osmain_driver(NULL), non_weak_tasks(0), + global_loop_chan(0), + global_env_chan(0), env(env) + { - // set up storage of pointers needed to - // access the global loop. - global_loop_chan = 0; // Create the single threaded scheduler that will run on the platform's // main thread -- cgit 1.4.1-3-g733a5