Lines Matching refs:block
30 block: Arc<dyn NotifierBlock<T>>, in register()
38 if Arc::as_ptr(&block) == Arc::as_ptr(b) { in register()
41 Arc::as_ptr(&block) in register()
46 if block.priority() > b.priority() { in register()
51 if block.priority() == b.priority() && unique_priority { in register()
59 self.0.insert(index, block); in register()
64 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in unregister()
67 .drain_filter(|b| Arc::as_ptr(&block) == Arc::as_ptr(b)); in unregister()
106 pub fn register(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in register()
108 return notifier_chain_guard.register(block, false); in register()
113 block: Arc<dyn NotifierBlock<T>>, in register_unique_prio()
116 return notifier_chain_guard.register(block, true); in register_unique_prio()
119 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in unregister()
121 return notifier_chain_guard.unregister(block); in unregister()
144 pub fn register(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in register()
146 return notifier_chain_guard.register(block, false); in register()
151 block: Arc<dyn NotifierBlock<T>>, in register_unique_prio()
154 return notifier_chain_guard.register(block, true); in register_unique_prio()
157 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in unregister()
159 return notifier_chain_guard.unregister(block); in unregister()
181 pub fn register(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in register()
182 return self.0.register(block, false); in register()
185 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<T>>) -> Result<(), SystemError> { in unregister()
186 return self.0.unregister(block); in unregister()