Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/fragile/examples/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 516 B image not shown  

Quelle  basic-fragile.rs

  Sprache: Rust
 

use std::thread;

use fragile::Fragile;

fn main() {
    // creating and using a fragile object in the same thread works
    let val = Fragile::new(true);
    println!("debug print in same thread: {:?}", &val);
    println!("try_get in same thread: {:?}", val.try_get());

    // once send to another thread it stops working
    thread::spawn(move || {
        println!("debug print in other thread: {:?}", &val);
        println!("try_get in other thread: {:?}", val.try_get());
    })
    .join()
    .unwrap();
}

Messung V0.5 in Prozent
C=82 H=88 G=84

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© 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.