Skip to content

Commit

Permalink
Let compiler auto impl Send for Task
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulstrackx committed Jun 4, 2024
1 parent b8c6008 commit 8db363c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions library/std/src/sys/pal/sgx/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8db363c

Please sign in to comment.