Remove os dependency in primitives_openbsd.odin

This commit is contained in:
gingerBill
2023-05-25 12:17:39 +01:00
parent 03b7194c97
commit 2fda3cf988
+8 -2
View File
@@ -2,8 +2,14 @@
//+private //+private
package sync package sync
import "core:os" foreign import libc "system:c"
@(default_calling_convention="c")
foreign libc {
@(link_name="getthrid", private="file")
_unix_getthrid :: proc() -> int ---
}
_current_thread_id :: proc "contextless" () -> int { _current_thread_id :: proc "contextless" () -> int {
return os.current_thread_id() return _unix_getthrid()
} }