Let compiler auto impl Send for Task

This commit is contained in:
Raoul Strackx 2024-05-30 15:50:59 +02:00
parent b8c6008fbc
commit 8db363c44b

View file

@ -32,8 +32,6 @@ mod task_queue {
done: JoinNotifier,
}
unsafe impl Send for Task {}
impl Task {
pub(super) fn new(p: Box<dyn FnOnce() + Send>) -> (Task, JoinHandle) {
let (done, recv) = wait_notify::new();