Class FileSystemSynchronizer

java.lang.Object
ghidra.framework.store.FileSystemSynchronizer

public class FileSystemSynchronizer extends Object
This class is essentially a global flag used to track the long running file system synchronizing operation. This class is a workaround to avoid rewriting the complicated file system locking.
  • Constructor Details

    • FileSystemSynchronizer

      public FileSystemSynchronizer()
  • Method Details

    • setSynchronizing

      public static void setSynchronizing(boolean b)
      Sets whether the synchronizing operation is running.
      Parameters:
      b - true if synchronizing
    • isSynchronizing

      public static boolean isSynchronizing()
      Returns true the underlying file system is going through a long-running synchronization operation while holding the filesystem lock. Calling this method allows clients in the Swing thread to avoid calling methods that require a file system lock, which would cause the UI to lock during the synchronizing operation.
      Returns:
      true if synchronizing