Sets the priority class of a threadΒΆ

set_thread_priority()

Sets the priority class of this client thread

Version >= 6.0.3


SYNTAX

set_thread_priority(server_name, thread_priority)

Changes the thread priority of this client on the named Sculptor server or the current thread in the calling process if server_name is NULL.

Returns 0 if successful or -1 if an error occurs.

Sets the thread priority of this client on the named Sculptor server. The value can be one of the THREAD_PRIORITY defines in sculptor.h. These are equivalent to the thread priorities in the Windows API but are not the values used in that API.


EXAMPLE

To set our thread priority on the server:

set_thread_priority(tmp.ServerName, tmp.NewServerThreadPriority)

RELATED TOPICS

Process and thread priority classes

get_process_priority()

set_process_priority()

get_thread_priority()