Wiki Page Content

SDL_SetThreadPriority

Use this function to set the priority for the current thread.

Syntax

int SDL_SetThreadPriority(SDL_ThreadPriority priority)

Function Parameters

priority

the SDL_ThreadPriority to set; see Remarks for details

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

priority may be one of the following:

SDL_THREAD_PRIORITY_LOW

for non-urgent, background processing

SDL_THREAD_PRIORITY_NORMAL

for general purpose processing (default)

SDL_THREAD_PRIORITY_HIGH

for timing-critical processing


CategoryAPI, CategoryThread

None: SDL_SetThreadPriority (last edited 2011-05-17 17:41:43 by SheenaSmith)

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