Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,9 @@
|
||||
module sync
|
||||
|
||||
// Get current thread ID from Windows API (via C interface)
|
||||
fn C.GetCurrentThreadId() u32
|
||||
|
||||
// thread_id returns a unique identifier for the caller thread.
|
||||
pub fn thread_id() u64 {
|
||||
return u64(C.GetCurrentThreadId())
|
||||
}
|
||||
Reference in new issue
Block a user