1 //! Extensions to `std::thread` for Windows.
3 #![stable(feature = "thread_extensions", since = "1.9.0")]
5 use crate::os
::windows
::io
::{AsRawHandle, IntoRawHandle, RawHandle}
;
6 use crate::sys_common
::{AsInner, IntoInner}
;
9 #[stable(feature = "thread_extensions", since = "1.9.0")]
10 impl<T
> AsRawHandle
for thread
::JoinHandle
<T
> {
12 fn as_raw_handle(&self) -> RawHandle
{
13 self.as_inner().handle().raw() as *mut _
17 #[stable(feature = "thread_extensions", since = "1.9.0")]
18 impl<T
> IntoRawHandle
for thread
::JoinHandle
<T
> {
20 fn into_raw_handle(self) -> RawHandle
{
21 self.into_inner().into_handle().into_raw() as *mut _