mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
8 lines
107 B
V
8 lines
107 B
V
|
module sync
|
||
|
|
||
|
fn C.GetCurrentThreadId() u32
|
||
|
|
||
|
pub fn thread_id() u64 {
|
||
|
return u64(C.GetCurrentThreadId())
|
||
|
}
|