uses SDL;
function SDL_GetThreadID( thread : PSDL_Thread ) : UInt32;
Returns the ID of a SDL_Thread created by SDL_CreateThread.
SDL_CreateThread