Package docking

Class TaskScheduler

  • All Implemented Interfaces:
    java.lang.Runnable

    public class TaskScheduler
    extends java.lang.Object
    implements java.lang.Runnable
    Calls a method on the Ghidra Dialog to get a TaskManager. The dialog shows a progress bar; this class schedules a task to run; when the task completes notify the dialog to hide the progress bar.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Thread getCurrentThread()
      Get the currently running thread.
      boolean isBusy()
      Returns true if this task scheduler is in the process of running a task or has a pending task.
      void run()  
      void waitForCurrentTask()
      Blocks until the current task completes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        See Also:
        Runnable.run()
      • getCurrentThread

        public java.lang.Thread getCurrentThread()
        Get the currently running thread.
        Returns:
        null if no thread is running.
      • waitForCurrentTask

        public void waitForCurrentTask()
        Blocks until the current task completes.
      • isBusy

        public boolean isBusy()
        Returns true if this task scheduler is in the process of running a task or has a pending task.
        Returns:
        true if this task scheduler is in the process of running a task or has a pending task.