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_kernel.h | |
| 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_kernel.h')
| -rw-r--r-- | src/rt/rust_kernel.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rt/rust_kernel.h b/src/rt/rust_kernel.h index f90ecf01a7b..477e59d1b3e 100644 --- a/src/rt/rust_kernel.h +++ b/src/rt/rust_kernel.h @@ -131,8 +131,6 @@ class rust_kernel { // Used to communicate with the process-side, global libuv loop uintptr_t global_loop_chan; - // Used to serialize access to getenv/setenv - uintptr_t global_env_chan; lock_and_signal at_exit_lock; spawn_fn at_exit_runner; @@ -193,7 +191,6 @@ public: bool send_to_port(rust_port_id chan, void *sptr); uintptr_t* get_global_loop() { return &global_loop_chan; } - uintptr_t* get_global_env_chan() { return &global_env_chan; } void register_exit_function(spawn_fn runner, fn_env_pair *f); }; |
