Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (4217 KB)
thr_getprio(3C)Name | Synopsis | Description | Return Values | Errors | Attributes | See Also Name
Synopsiscc –mt [ flag... ] file...[ library... ] #include <thread.h> int thr_setprio(thread_t target_thread, int priority); int thr_getprio(thread_t target_thread, int *priority); DescriptionThe thr_setprio() function sets the scheduling priority for the thread specified by target_thread within the current process to the value given by priority. The thr_getprio() function stores the current priority for the thread specified by target_thread in the location pointed to by priority. If the thr_setprio() function fails, the scheduling priority of the target thread is not changed. See priocntl(2), pthread_setschedprio(3C), and sched_setparam(3C). Return ValuesIf successful, the thr_getprio() and thr_setprio() functions return 0. Otherwise, an error number is returned to indicate the error. Errors
The thr_getprio() and thr_setprio() functions will fail if: The thr_setprio() function will fail if: AttributesSee attributes(5) for descriptions of the following attributes:
See Alsopriocntl(2), pthread_setschedprio(3C), sched_setparam(3C), thr_create(3C), thr_suspend(3C), thr_yield(3C), attributes(5), standards(5) Name | Synopsis | Description | Return Values | Errors | Attributes | See Also |
||||