The function task::get_task() will do what you want.

September 14, 2012 11:56 PM
Hi all,

I want to get the name of the task that called a Rust function in my
Rust code.How do I do that in Rust(I think,in C++,we will do it by
rust_task *task = rust_get_current_task();)

Atri

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to