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 55f3d10 commit ea7e91c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions 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 ea7e91c

Please sign in to comment.