Adding support for pinning tasks to the currently running thread. Closes #598.

This commit is contained in:
Eric Holk
2011-06-29 18:47:47 -07:00
parent afabde19dc
commit 63dcd325b9
8 changed files with 67 additions and 17 deletions

View File

@@ -700,6 +700,15 @@ ivec_copy_from_buf(rust_task *task, type_desc *ty, rust_ivec *v, void *ptr,
v->payload.ptr->fill = new_size;
}
extern "C" void
pin_task(rust_task *task) {
task->pin();
}
extern "C" void
unpin_task(rust_task *task) {
task->unpin();
}
//
// Local Variables: