MCPcopy Create free account
hub / github.com/GCWing/BitFun / get_thread_id

Function get_thread_id

src/apps/desktop/src/logging.rs:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20static CURRENT_LOG_LEVEL: AtomicU8 = AtomicU8::new(level_filter_to_u8(log::LevelFilter::Debug));
21
22fn get_thread_id() -> u64 {
23 let thread_id = thread::current().id();
24 let id_str = format!("{:?}", thread_id);
25 id_str
26 .trim_start_matches("ThreadId(")
27 .trim_end_matches(')')
28 .parse()
29 .unwrap_or(0)
30}
31
32#[derive(Debug, Clone)]
33pub struct LogConfig {

Callers

nothing calls this directly

Calls 2

idMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected