Remove context.thread_id

This commit is contained in:
gingerBill
2021-06-08 15:57:00 +01:00
parent f19bb0f4d4
commit 8ec2ca9dcd
14 changed files with 58 additions and 32 deletions
+4
View File
@@ -4,6 +4,10 @@ package sync
import win32 "core:sys/windows"
import "core:time"
current_thread_id :: proc "contextless" () -> int {
return int(win32.GetCurrentThreadId());
}
// When waited upon, blocks until the internal count is greater than zero, then subtracts one.
// Posting to the semaphore increases the count by one, or the provided amount.