Package docking
Class TaskScheduler
- java.lang.Object
 - 
- docking.TaskScheduler
 
 
- 
- All Implemented Interfaces:
 java.lang.Runnable
public class TaskScheduler extends java.lang.Object implements java.lang.RunnableCalls 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.ThreadgetCurrentThread()Get the currently running thread.booleanisBusy()Returns true if this task scheduler is in the process of running a task or has a pending task.voidrun()voidwaitForCurrentTask()Blocks until the current task completes. 
 - 
 
- 
- 
Method Detail
- 
run
public void run()
- Specified by:
 runin interfacejava.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.
 
 
 - 
 
 -