Sign in
◑
Theme
rust
/
rust
/
fe7d9577c2d326cdf4e32946bfdaba28fa15a1ed
/
.
/
src
/
tools
/
rustfmt
/
tests
/
source
/
cfg_select
/
issue_7209.rs
blob: 4c06baa145027c26f374c4a9050ff8007a93cec2 [
file
]
//@ rustfmt-unstable: true
//@ rustfmt-edition: 2024
fn
gettid
()
->
u64
{
cfg_select
!
{
any
(
target_os
=
"solaris"
,
target_os
=
"illumos"
)
=>
{
// On Solaris and Illumos, the `pthread_t` is the OS TID.
unsafe
{
libc
::
pthread_self
()
as
u64
}
}
}
}