Skip to content

Commit 4357e1f

Browse files
committed
rt: Take the weak_task_lock in end_weak_tasks
Don't remember why it's commented out. Probably an oversight.
1 parent 90f82e1 commit 4357e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_kernel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ void
337337
rust_kernel::end_weak_tasks() {
338338
std::vector<rust_port_id> chancopies;
339339
{
340-
//scoped_lock with(weak_task_lock);
340+
scoped_lock with(weak_task_lock);
341341
chancopies = weak_task_chans;
342342
weak_task_chans.clear();
343343
}

0 commit comments

Comments
 (0)