v / vlib / sync
Raw file | 7 loc (5 sloc) | 107 bytes | Latest commit hash ce576d01c
1module sync
2
3fn C.GetCurrentThreadId() u32
4
5pub fn thread_id() u64 {
6 return u64(C.GetCurrentThreadId())
7}