///Thread equality function.
///
///Guarantees to compare regardless of raw type.
Thread equality function.
Guarantees to compare regardless of raw type.
Thread equality function . Guarantees to compare regardless of raw type .
pub fn raw_thread_eq(left: RawId, right: RawId) -> bool {
    #[cfg(any(target_os = "linux", target_os = "android", target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "freebsd"))]
    {
        left == right
    }
    #[cfg(all(not(target_os = "linux"), not(target_os = "android"), not(target_os = "macos"), not(target_os = "ios"), not(target_os = "netbsd"), not(target_os = "freebsd")))]
    {
        #[link(name = "pthread")]
        extern "C" {
            pub fn pthread_equal(left: RawId, right: RawId) -> libc::c_int;
        }
        unsafe {
            pthread_equal(left, right) != 0
        }
    }
}
pub fn raw_thread_eq ( left : RawId , right : RawId ) -> bool { # [ cfg ( any ( target_os " " target_os " " target_os " " target_os " " target_os " " target_os " " ) ) ] { left == right } # [ cfg ( all ( not ( target_os " " ) not ( target_os " " ) not ( target_os " " ) not ( target_os " " ) not ( target_os " " ) not ( target_os " " ) ) ) ] { # [ link ( name " " ) ] extern " " { pub fn pthread_equal ( left : RawId , right : RawId ) -> libc :: c_int ; } unsafe { pthread_equal ( left , right ) != 0 } } }
Thread equality function.
Thread equality function .
left
RawId
right
RawId