diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-06-09 16:42:23 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-06-09 16:42:23 +0200 |
| commit | 3c7e2659ac60f6666ae0589304174694f4666778 (patch) | |
| tree | 36194f25845f6ac3896977a9bd326c0431ce742c /src/threading.cpp | |
| parent | 28ea9425fdd1dca0179873a3fe2c2d64df2e3299 (diff) | |
| parent | ef7c6b98951aacc72bd25750e1c4a3a8c30c7d06 (diff) | |
Merge branch 'master' into tlsf-allocator
Diffstat (limited to 'src/threading.cpp')
| -rw-r--r-- | src/threading.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index 48c58e8f4..717dcb874 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -494,6 +494,8 @@ gb_internal u32 thread_current_id(void) { thread_id = find_thread(NULL); #elif defined(GB_SYSTEM_FREEBSD) thread_id = pthread_getthreadid_np(); +#elif defined(GB_SYSTEM_NETBSD) + thread_id = (u32)_lwp_self(); #else #error Unsupported architecture for thread_current_id() #endif |