search for: dec_ref

Displaying 2 results from an estimated 2 matches for "dec_ref".

Did you mean: aec_rec
2007 Apr 13
0
[952] branches/wxruby2/wxwidgets_282/doc/textile/gridcellattr.txtl: Doc fix from Wx 2.8
...once will delete it. Calling IncRef() allows to lock </span><span class="cx"> it until the matching DecRef() is called </span><span class="cx"> </span><ins>+ </ins><span class="cx"> h3(#GridCellAttr_decref). GridCellAttr#dec_ref </span><span class="cx"> </span><span class="cx"> *dec_ref*() </span><span class="lines">@@ -74,24 +76,30 @@ </span><span class="cx"> </span><span class="cx"> Sets the text colour. <...
2024 May 30
0
[RFC PATCH 7/8] rust: add firmware abstractions
...> +unsafe impl crate::types::AlwaysRefCounted for Device { > + fn inc_ref(&self) { > + // SAFETY: The existence of a shared reference guarantees that the refcount is nonzero. > + unsafe { bindings::get_device(self.as_raw()) }; > + } > + > + unsafe fn dec_ref(obj: ptr::NonNull<Self>) { > + // SAFETY: The safety requirements guarantee that the refcount is nonzero. > + unsafe { bindings::put_device(obj.cast().as_ptr()) } > + } > +} > > The following comments give the impression that Rust abstractions > wrongly...