mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-25 03:49:46 +00:00
Fix massive lag spike when starting on haiku
This commit is contained in:
parent
9ba3fabfb6
commit
f8e7c0f80f
7 changed files with 25 additions and 17 deletions
|
|
@ -17,8 +17,8 @@ using namespace RakNet;
|
|||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
#include <kernel/OS.h>
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
|
@ -93,9 +93,10 @@ int RakThread::Create( void* start_address( void* ), void *arglist, int priority
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
thread_id threadHandle = spawn_thread((thread_func)start_address, "RakThread", priority, arglist);
|
||||
int res = resume_thread(threadHandle);
|
||||
return res == B_OK ? 0 : 1;
|
||||
#else
|
||||
pthread_t threadHandle;
|
||||
// Create thread linux
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue