fix many things and make playable

This commit is contained in:
Kolyah35
2026-03-03 02:25:34 +03:00
parent 13010f10fa
commit fd183d4888
8 changed files with 52 additions and 30 deletions

View File

@@ -25,12 +25,12 @@
&m_threadID // pointer to receive thread ID
);
#endif
#if defined(LINUX) || defined(ANDROID) || defined(__APPLE__) || defined(POSIX)
#if defined(__linux__) || defined(ANDROID) || defined(__APPLE__) || defined(POSIX)
mp_threadFunc = (pthread_fn)threadFunc;
pthread_attr_init(&m_attributes);
pthread_attr_setdetachstate( &m_attributes, PTHREAD_CREATE_DETACHED );
/*int error =*/ pthread_create(&m_thread, &m_attributes, mp_threadFunc,threadParam);
/*int error =*/ pthread_create(&m_thread, &m_attributes, mp_threadFunc, threadParam);
#endif
#ifdef MACOSX
mp_threadFunc = (TaskProc) threadFunc;

View File

@@ -13,7 +13,7 @@
typedef void *( * pthread_fn )( void * );
#if defined(LINUX) || defined(ANDROID) || defined(__APPLE__) || defined(POSIX)
#if defined(__linux__) || defined(ANDROID) || defined(__APPLE__) || defined(POSIX)
#include <pthread.h>
#include <unistd.h>
@@ -38,7 +38,7 @@ typedef void *( * pthread_fn )( void * );
DWORD m_threadID;
HANDLE m_threadHandle;
#endif
#if defined(LINUX) || defined(ANDROID) || defined(__APPLE__) || defined(POSIX)
#if defined(__linux__) || defined(ANDROID) || defined(__APPLE__) || defined(POSIX)
pthread_fn mp_threadFunc;
pthread_t m_thread;
pthread_attr_t m_attributes;