1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[cfg(windows)] extern crate kernel32;
#[cfg(unix)] extern crate libc;
#[cfg(any(target_os = "ios", target_os = "macos"))] extern crate mach;
#[cfg(windows)] extern crate winapi;
#[cfg(unix)] use ::libc::pid_t;
#[cfg(unix)] use ::libc::pthread_self;
#[cfg(unix)] use ::libc::pthread_t;
use ::std::collections::HashSet;
use ::std::io;
#[cfg(target_os = "dragonfly")] pub(crate) mod dragonfly;
#[cfg(target_os = "emscripten")] pub(crate) mod emscripten;
#[cfg(target_os = "freebsd")] pub(crate) mod freebsd;
#[cfg(target_os = "fuschia")] pub(crate) mod fuschia;
#[cfg(any(target_os = "ios", target_os = "macos"))] pub(crate) mod ios_macos;
#[cfg(target_os = "linux")] pub(crate) mod linux;
#[cfg(target_os = "netbsd")] pub(crate) mod netbsd;
#[cfg(target_env = "uclibc")] pub(crate) mod uclibc;
include!("LogicalCores.rs");
include!("ProcessIdentifier.rs");
include!("ThreadIdentifier.rs");