macro_rules! name_thread {
    ($($tt:tt)*) => { ... };
}
Expand description

Annotate an OS thread with a name.

Examples

use std::thread;
use nvtx::{name_thread};
name_thread!("Thread 1");
let handler = thread::spawn(|| {
   name_thread!("Thread 2");
});
handler.join().unwrap();