Skip to content

Commit

Permalink
Make queue sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
pronebird committed Dec 17, 2024
1 parent 03e3882 commit f01d36c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/dispatch2/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ pub struct Queue {
is_workloop: bool,
}

// Safety: dispatch queue can be safely moved between threads.
unsafe impl Send for Queue {}

impl Queue {
/// Create a new [Queue].
pub fn new(label: &str, queue_attribute: QueueAttribute) -> Self {
Expand Down

0 comments on commit f01d36c

Please sign in to comment.