forked from mirrors/kolyah35-minecraft-pe-0.6.1
fix many things and make playable
This commit is contained in:
parent
13010f10fa
commit
fd183d4888
8 changed files with 52 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue