pub struct SoftGpuSignal {
pub handle: PackedHandle,
pub is_doorbell: bool,
pub queue_id: Option<u64>,
/* private fields */
}Fields§
§handle: PackedHandle§is_doorbell: boolTrue when this signal is owned as a queue doorbell (observe stores).
queue_id: Option<u64>Implementations§
Source§impl SoftGpuSignal
impl SoftGpuSignal
pub fn new(handle: PackedHandle, initial: i64) -> Self
pub fn new_doorbell(handle: PackedHandle, initial: i64, queue_id: u64) -> Self
pub fn load(&self) -> i64
pub fn store(&self, value: i64)
pub fn cancel(&self)
pub fn is_cancelled(&self) -> bool
pub fn wait( &self, condition: SignalCondition, compare: i64, timeout_hint_ns: u64, _wait_state_hint: u32, ) -> SignalWaitOutcome
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SoftGpuSignal
impl RefUnwindSafe for SoftGpuSignal
impl Send for SoftGpuSignal
impl Sync for SoftGpuSignal
impl Unpin for SoftGpuSignal
impl UnsafeUnpin for SoftGpuSignal
impl UnwindSafe for SoftGpuSignal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more