wayland: implement ext-idle-notifier
This commit is contained in:
parent
01e3930ced
commit
9a024fe72c
9 changed files with 287 additions and 3 deletions
|
|
@ -81,6 +81,10 @@ impl<K: Eq + Hash, V> CopyHashMap<K, V> {
|
|||
unsafe { self.map.get().deref().is_empty() }
|
||||
}
|
||||
|
||||
pub fn is_not_empty(&self) -> bool {
|
||||
!self.is_empty()
|
||||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
unsafe { self.map.get().deref().len() }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue