diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-30 17:28:14 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-30 17:34:29 -0700 |
| commit | 46cc11ea882681a3b524df97d86442c967bf30e2 (patch) | |
| tree | 0809ca944248eb5e5fc6829f6ccf2de714294510 /src/rt/rust_kernel.cpp | |
| parent | 30385022c1a7b265a746acb702e6fd1ee3d0e92f (diff) | |
| download | rust-46cc11ea882681a3b524df97d86442c967bf30e2.tar.gz rust-46cc11ea882681a3b524df97d86442c967bf30e2.zip | |
core: Serialize all access to the environment using a weak global task
Diffstat (limited to 'src/rt/rust_kernel.cpp')
| -rw-r--r-- | src/rt/rust_kernel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
