core: Add new weak task API

This commit is contained in:
Brian Anderson 2013-01-15 19:53:35 -08:00
parent 1bf8e57943
commit 8852279a9e
7 changed files with 233 additions and 8 deletions

View file

@ -1038,6 +1038,18 @@ rust_get_global_data_ptr() {
return &task->kernel->global_data;
}
extern "C" void
rust_inc_weak_task_count() {
rust_task *task = rust_get_current_task();
task->kernel->inc_weak_task_count();
}
extern "C" void
rust_dec_weak_task_count() {
rust_task *task = rust_get_current_task();
task->kernel->dec_weak_task_count();
}
//
// Local Variables:
// mode: C++