Update usage of syscall to use the intrinsics
This commit is contained in:
1 parent
54b37573c9
commit
7c108dbf48
3 files changed
+10
-19
No files matched your search
@@ -1,16 +1,11 @@
|
||||
package sync
|
||||
|
||||
import "core:sys/unix"
|
||||
|
||||
foreign import libc "system:c"
|
||||
import "core:intrinsics"
|
||||
|
||||
current_thread_id :: proc "contextless" () -> int {
|
||||
foreign libc {
|
||||
syscall :: proc(number: i32, #c_vararg args: ..any) -> i32 ---
|
||||
}
|
||||
|
||||
SYS_GETTID :: 186;
|
||||
return int(syscall(SYS_GETTID));
|
||||
return int(intrinsics.syscall(SYS_GETTID));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user