summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys/src/Windows/System/Threading/mod.rs
blob: bf5f9065fad98b797ff77d3385f6618b6457f827 (plain)
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
#[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
    }
}