diff options
| author | joboet <jonasboettiger@icloud.com> | 2022-12-02 14:38:20 +0100 | 
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2022-12-02 14:38:20 +0100 | 
| commit | da0a54277aed2127993541292bd3a923f3c61081 (patch) | |
| tree | a697783c85cd653c90b0f5384a9fa7e218c47a76 /library/std/src/sys/unix/time.rs | |
| parent | 11663b1b4857ffeafbd85a9a36c234d117373b76 (diff) | |
| download | rust-da0a54277aed2127993541292bd3a923f3c61081.tar.gz rust-da0a54277aed2127993541292bd3a923f3c61081.zip | |
std: cleanup timeouts in pthread condvar
Diffstat (limited to 'library/std/src/sys/unix/time.rs')
| -rw-r--r-- | library/std/src/sys/unix/time.rs | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs index d5abd9b581c..2daad981b73 100644 --- a/library/std/src/sys/unix/time.rs +++ b/library/std/src/sys/unix/time.rs @@ -5,6 +5,9 @@ pub use self::inner::Instant; const NSEC_PER_SEC: u64 = 1_000_000_000; pub const UNIX_EPOCH: SystemTime = SystemTime { t: Timespec::zero() }; +#[allow(dead_code)] // Used for pthread condvar timeouts +pub const TIMESPEC_MAX: libc::timespec = + libc::timespec { tv_sec: <libc::time_t>::MAX, tv_nsec: 1_000_000_000 - 1 }; #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[repr(transparent)] | 
