Skip to content

Commit 89a8162

Browse files
author
Stjepan Glavina
committed
Impl Send & Sync for JoinHandle
1 parent 45b48b9 commit 89a8162

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstd/thread/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,9 @@ impl<T> JoinInner<T> {
12761276
#[stable(feature = "rust1", since = "1.0.0")]
12771277
pub struct JoinHandle<T>(JoinInner<T>);
12781278

1279+
unsafe impl<T> Send for JoinHandle<T> {}
1280+
unsafe impl<T> Sync for JoinHandle<T> {}
1281+
12791282
impl<T> JoinHandle<T> {
12801283
/// Extracts a handle to the underlying thread.
12811284
///

0 commit comments

Comments
 (0)