Skip to main content

relibc/header/bits_limits_ptdi/
mod.rs

1//! `PTHREAD_DESTRUCTOR_ITERATIONS` for `limits.h` implementation.
2//!
3//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/limits.h.html>.
4
5use crate::platform::types::c_long;
6
7/// Minimum required value for `PTHREAD_DESTRUCTOR_ITERATIONS`.
8pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: c_long = 4;
9
10/// Maximum number of attempts made to destroy a thread's thread-specific data
11/// values on thread exit.
12pub const PTHREAD_DESTRUCTOR_ITERATIONS: c_long = _POSIX_THREAD_DESTRUCTOR_ITERATIONS;