From f70e3d949afd294452f0cd2fe4848c1c590605b0 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Fri, 1 Dec 2023 23:11:01 +0300 Subject: [PATCH] Decrease lines count --- include/platform/thread.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/platform/thread.h b/include/platform/thread.h index 339c75a..4db67d1 100644 --- a/include/platform/thread.h +++ b/include/platform/thread.h @@ -17,16 +17,13 @@ typedef void* ThreadR; #endif /* _WIN32 */ typedef ThreadR (*Thread)(void *); +static inline void threadCreate(Thread function, void *args) +{ #ifdef _WIN32 -static inline void threadCreate(Thread function, void *args) -{ _beginthread(function, 0, args); -} #else -static inline void threadCreate(Thread function, void *args) -{ pthread_create(&(pthread_t){0}, 0, function, args); -} #endif /* _WIN32 */ +} #endif /* __THREAD_H__ */