Class ThreadsJNI

java.lang.Object
org.wpilib.hardware.hal.JNIWrapper
org.wpilib.hardware.hal.ThreadsJNI

public class ThreadsJNI extends JNIWrapper
Threads HAL JNI Functions.
See Also:
  • "wpi/hal/Threads.h"
  • Method Details

    • getCurrentThreadPriority

      public static int 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:
      • "HAL_GetCurrentThreadPriority"
    • setCurrentThreadPriority

      public static boolean setCurrentThreadPriority(int priority)
      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:
      • "HAL_SetCurrentThreadPriority"