private TableUpdateJob<T> getNextJob() {
		synchronized (addRemoveUpdater) {
			currentJob = pendingJob;
			pendingJob = null;

			if (currentJob == null) {
				jobDone();
			}

			return currentJob;
		}
	}
Transitions the pending job to the current job is a thread safe way.
@return the new current job.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/threaded/ThreadedTableModelUpdateMgr.java