public void cancelAll() {
		lock.lock();
		try {
			if (runningGroup != null) {
				runningGroup.setCancelled();
				if (runningTask != null) {
					runningTask.getTaskMonitor().cancel();
				}
			}
			for (GTaskGroup group : taskGroupList) {
				group.setCancelled();
			}
			if (suspended) {
				processCancelledJobsInPriorityQ();
				processCancelledGroups();
			}
		}
		finally {
			lock.unlock();
		}

	}
Cancels all scheduled groups and tasks. The TaskMonitor for
the currently running task will be cancelled, but the task will continue to run until it
checks the monitor.
Ghidra/Framework/Project/src/main/java/ghidra/framework/task/GTaskManager.java