mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
rt: Remove a lock from task_start_wrapper that does nothing
This commit is contained in:
@@ -210,9 +210,6 @@ void task_start_wrapper(spawn_args *a)
|
||||
#else
|
||||
A(task->sched, false, "Shouldn't happen");
|
||||
#endif
|
||||
} else {
|
||||
task->lock.lock();
|
||||
task->lock.unlock();
|
||||
}
|
||||
task->ctx.next->swap(task->ctx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user