summaryrefslogtreecommitdiff
path: root/glfw/src/util.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-10-18 17:14:46 +0200
committerHampusM <hampus@hampusmat.com>2025-10-18 17:14:46 +0200
commit178723c9627a3aebb2f83dc476abe7d23de63eac (patch)
tree7591c4a864f93d7404af85f3e6a82dd9b972d886 /glfw/src/util.rs
parent7083a19bf1029bff21a9550d40cc3260e99aac53 (diff)
chore: remove glfw crate
Diffstat (limited to 'glfw/src/util.rs')
-rw-r--r--glfw/src/util.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/glfw/src/util.rs b/glfw/src/util.rs
deleted file mode 100644
index f77aaf8..0000000
--- a/glfw/src/util.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-use libc::{c_long, getpid, syscall, SYS_gettid};
-
-pub fn is_main_thread() -> bool
-{
- let ttid = unsafe { syscall(SYS_gettid) };
-
- let pid = c_long::from(unsafe { getpid() });
-
- ttid == pid
-}