]>
git.proxmox.com Git - rustc.git/blob - vendor/nix/test/sys/test_pthread.rs
1 use nix
::sys
::pthread
::*;
3 #[cfg(any(target_env = "musl", target_os = "redox"))]
5 fn test_pthread_self() {
6 let tid
= pthread_self();
7 assert
!(!tid
.is_null());
10 #[cfg(not(any(target_env = "musl", target_os = "redox")))]
12 fn test_pthread_self() {
13 let tid
= pthread_self();
18 #[cfg(not(target_os = "redox"))]
19 fn test_pthread_kill_none() {
20 pthread_kill(pthread_self(), None
)
21 .expect("Should be able to send signal to my thread.");