Wiki Page Content

Revision 6 as of 2011-03-01 19:21:17

Clear message

DRAFT

SDL_GetThreadID

Use this function to get the thread identifier for the specified thread.

Syntax

SDL_threadID SDL_GetThreadID(SDL_Thread* thread)

Function Parameters

thread

The desired/specified thread to query

Return Value

Returns the ID of the specified thread. This thread identifier is as reported by the underlying operating system. If SDL is running on a platform that does not support threads the return value will always be zero.

If the passed-in SDL_Thread pointer is NULL, this function will always return an SDL_threadID of zero.

Code Examples


Remarks

If the SDL thread pointer passed to this function is NULL, this function will return the SDL_ThreadID of the current thread.


CategoryAPI, CategoryThread

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit