1
Fork 0

core: Add task::unkillable

This commit is contained in:
Brian Anderson 2012-05-15 11:34:52 -07:00
parent 8fe0461f06
commit 7277cd7198
5 changed files with 92 additions and 2 deletions

View file

@ -805,6 +805,18 @@ rust_global_env_chan_ptr() {
return task->kernel->get_global_env_chan();
}
extern "C" void
rust_task_inhibit_kill() {
rust_task *task = rust_get_current_task();
task->inhibit_kill();
}
extern "C" void
rust_task_allow_kill() {
rust_task *task = rust_get_current_task();
task->allow_kill();
}
//
// Local Variables:
// mode: C++