Return the priority class of a threadΒΆ
get_thread_priority() |
Return the priority class of this client thread |
Version >= 6.0.3 |
SYNTAX
get_thread_priority(server_name)
Returns the thread priority of this client on the named Sculptor server or -1 if an error occurs. The value returned is 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.
If server_name is NULL, returns the thread priority of the current thread in the calling process.
EXAMPLE
To get our thread priority on the server:
tmp.ServerThreadPriority = get_thread_priority(tmp.ServerName)
RELATED TOPICS |