From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- .../src/Windows/System/Threading/Core/mod.rs | 3 ++ .../src/Windows/System/Threading/mod.rs | 33 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 vendor/windows-sys/src/Windows/System/Threading/Core/mod.rs create mode 100644 vendor/windows-sys/src/Windows/System/Threading/mod.rs (limited to 'vendor/windows-sys/src/Windows/System/Threading') diff --git a/vendor/windows-sys/src/Windows/System/Threading/Core/mod.rs b/vendor/windows-sys/src/Windows/System/Threading/Core/mod.rs new file mode 100644 index 000000000..263e93c81 --- /dev/null +++ b/vendor/windows-sys/src/Windows/System/Threading/Core/mod.rs @@ -0,0 +1,3 @@ +pub type PreallocatedWorkItem = *mut ::core::ffi::c_void; +pub type SignalHandler = *mut ::core::ffi::c_void; +pub type SignalNotifier = *mut ::core::ffi::c_void; diff --git a/vendor/windows-sys/src/Windows/System/Threading/mod.rs b/vendor/windows-sys/src/Windows/System/Threading/mod.rs new file mode 100644 index 000000000..bf5f9065f --- /dev/null +++ b/vendor/windows-sys/src/Windows/System/Threading/mod.rs @@ -0,0 +1,33 @@ +#[cfg(feature = "System_Threading_Core")] +pub mod Core; +pub type ThreadPoolTimer = *mut ::core::ffi::c_void; +pub type TimerDestroyedHandler = *mut ::core::ffi::c_void; +pub type TimerElapsedHandler = *mut ::core::ffi::c_void; +pub type WorkItemHandler = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"System_Threading\"`*"] +#[repr(transparent)] +pub struct WorkItemOptions(pub u32); +impl WorkItemOptions { + pub const None: Self = Self(0u32); + pub const TimeSliced: Self = Self(1u32); +} +impl ::core::marker::Copy for WorkItemOptions {} +impl ::core::clone::Clone for WorkItemOptions { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"System_Threading\"`*"] +#[repr(transparent)] +pub struct WorkItemPriority(pub i32); +impl WorkItemPriority { + pub const Low: Self = Self(-1i32); + pub const Normal: Self = Self(0i32); + pub const High: Self = Self(1i32); +} +impl ::core::marker::Copy for WorkItemPriority {} +impl ::core::clone::Clone for WorkItemPriority { + fn clone(&self) -> Self { + *self + } +} -- cgit v1.2.3