diff options
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index f9c95db1d04..1ba941c233c 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -968,6 +968,18 @@ task_signal_event(rust_task *target, void *event) { target->signal_event(event); } +// Can safely run on the rust stack. +extern "C" void +rust_task_ref(rust_task *task) { + task->ref(); +} + +// Don't run on the rust stack! +extern "C" void +rust_task_deref(rust_task *task) { + task->deref(); +} + // // Local Variables: // mode: C++ |
