core: Convert getenv/setenv to use a mutex

This much simpler implementation uses a global mutex
and eliminates the kernel environment channel.
This commit is contained in:
Brian Anderson
2013-01-19 22:54:29 -08:00
parent 8852279a9e
commit fb9299346a
5 changed files with 72 additions and 151 deletions

View File

@@ -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();