#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#[inline]
#[cfg(target_os = "windows")]
pub fn lpt() {
use windows::Win32::System::Threading::*;
unsafe { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE) };
}
#[inline]
#[cfg(target_family = "unix")]
pub fn lpt() {
const NICE_MAX: libc::c_int = if cfg!(target_os = "linux") { 19 } else { 20 };
unsafe { libc::nice(NICE_MAX) };
}