forked from 0ad/0ad
pthread_self, return the thread ID instead of the virtual handle
This was SVN commit r175.
This commit is contained in:
parent
5aa404a8f2
commit
d2b8c799c4
@ -258,7 +258,7 @@ int poll(struct pollfd /* fds */[], int /* nfds */, int /* timeout */)
|
||||
|
||||
|
||||
__declspec(naked) pthread_t pthread_self(void)
|
||||
{ __asm jmp dword ptr [GetCurrentThread] }
|
||||
{ __asm jmp dword ptr [GetCurrentThreadId] }
|
||||
|
||||
|
||||
int pthread_getschedparam(pthread_t thread, int* policy, struct sched_param* param)
|
||||
|
Loading…
Reference in New Issue
Block a user