core: Serialize all access to the environment using a weak global task

This commit is contained in:
Brian Anderson
2012-04-30 17:28:14 -07:00
parent 30385022c1
commit 46cc11ea88
8 changed files with 150 additions and 71 deletions

View File

@@ -781,6 +781,12 @@ 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();
}
//
// Local Variables:
// mode: C++