diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-01-19 22:54:29 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-01-23 17:35:34 -0800 |
| commit | fb9299346af9b951890db80e47eb65625997f160 (patch) | |
| tree | c048d87d7ad93562335e9505ed747ef3d86eb142 /src/rt/rust_builtin.cpp | |
| parent | 8852279a9ecac970e30b6d92d7efdcbd5485769c (diff) | |
| download | rust-fb9299346af9b951890db80e47eb65625997f160.tar.gz rust-fb9299346af9b951890db80e47eb65625997f160.zip | |
core: Convert getenv/setenv to use a mutex
This much simpler implementation uses a global mutex and eliminates the kernel environment channel.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index a5e1260d4a5..327337f441d 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -870,12 +870,6 @@ rust_task_unweaken(rust_port_id chan) { task->kernel->unweaken_task(chan); } -extern "C" CDECL uintptr_t* -rust_global_env_chan_ptr() { - rust_task *task = rust_get_current_task(); - return task->kernel->get_global_env_chan(); -} - extern "C" void rust_task_inhibit_kill(rust_task *task) { task->inhibit_kill(); |
