Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/core-foundation/src/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 794 B image not shown  

Quelle  mach_port.rs

  Sprache: Rust
 

use crate::base::TCFType;
use crate::runloop::CFRunLoopSource;
use core_foundation_sys::base::kCFAllocatorDefault;
pub use core_foundation_sys::mach_port::*;

declare_TCFType! {
    /// An immutable numeric value.
    CFMachPort, CFMachPortRef
}
impl_TCFType!(CFMachPort, CFMachPortRef, CFMachPortGetTypeID);
impl_CFTypeDescription!(CFMachPort);

impl CFMachPort {
    pub fn create_runloop_source(&self, order: CFIndex) -> Result<CFRunLoopSource, ()> {
        unsafe {
            let runloop_source_ref =
                CFMachPortCreateRunLoopSource(kCFAllocatorDefault, self.0, order);
            if runloop_source_ref.is_null() {
                Err(())
            } else {
                Ok(CFRunLoopSource::wrap_under_create_rule(runloop_source_ref))
            }
        }
    }
}

Messung V0.5 in Prozent
C=85 H=97 G=91

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-23) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.