Class ThreadsJNI
java.lang.Object
org.wpilib.hardware.hal.JNIWrapper
org.wpilib.hardware.hal.ThreadsJNI
-
Nested Class Summary
Nested classes/interfaces inherited from class JNIWrapper
JNIWrapper.Helper -
Method Summary
Modifier and TypeMethodDescriptionstatic intGets the current thread's priority.static booleansetCurrentThreadPriority(int priority) Sets the current thread's priority.Methods inherited from class JNIWrapper
forceLoad, suppressUnused
-
Method Details
-
getCurrentThreadPriority
Gets the current thread's priority.Priorities range from 0 to 99 where 0 is non-real-time, 1-99 are real-time, and 99 is highest priority. See "man 7 sched" for details.
- Returns:
- The current thread's priority.
- See Also:
-
setCurrentThreadPriority
Sets the current thread's priority.Priorities range from 0 to 99 where 0 is non-real-time, 1-99 are real-time, and 99 is highest priority. See "man 7 sched" for details.
- Parameters:
priority- The priority.- Returns:
- True on success.
- See Also:
-