diff options
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 06b09bcedd2..bcf5575cede 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -751,9 +751,14 @@ rust_raw_thread_start(fn_env_pair *fn) { } extern "C" void -rust_raw_thread_join_delete(raw_thread *thread) { +rust_raw_thread_join(raw_thread *thread) { assert(thread); thread->join(); +} + +extern "C" void +rust_raw_thread_delete(raw_thread *thread) { + assert(thread); delete thread; } |
