pub struct CompositorLock { /* private fields */ }Expand description
A lock that the thread holding it may enter again (lock in C#).
Implementations§
Source§impl CompositorLock
impl CompositorLock
pub fn new() -> Self
Sourcepub fn enter(&self) -> CompositorLockGuard<'_>
pub fn enter(&self) -> CompositorLockGuard<'_>
Enters the lock, waiting while another thread holds it.
Sourcepub fn is_held_by_current_thread(&self) -> bool
pub fn is_held_by_current_thread(&self) -> bool
Whether the calling thread holds the lock.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CompositorLock
impl RefUnwindSafe for CompositorLock
impl Send for CompositorLock
impl Sync for CompositorLock
impl Unpin for CompositorLock
impl UnsafeUnpin for CompositorLock
impl UnwindSafe for CompositorLock
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more