core: Add private global data interface. #3915

This commit is contained in:
Brian Anderson 2013-01-12 23:27:46 -08:00
parent ac435af73a
commit db1abbec4c
6 changed files with 275 additions and 2 deletions

View file

@ -1032,6 +1032,12 @@ rust_register_exit_function(spawn_fn runner, fn_env_pair *f) {
task->kernel->register_exit_function(runner, f);
}
extern "C" void *
rust_get_global_data_ptr() {
rust_task *task = rust_get_current_task();
return &task->kernel->global_data;
}
//
// Local Variables:
// mode: C++