[][src]Macro thorium::tlc_read

macro_rules! tlc_read {
    ($cell_name:ident) => { ... };
}

Read a value out of a thread_local Cell

use core::cell::Cell;
use thorium::tlc_read;

thread_local! {
  static YES: Cell<bool> = Cell::new(true);
}
fn main() {
  assert!(tlc_read!(YES));
}