Package ghidra.framework.store
Class FileSystemSynchronizer
java.lang.Object
ghidra.framework.store.FileSystemSynchronizer
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true the underlying file system is going through a long-running synchronization operation while holding thefilesystem
lock.static void
setSynchronizing
(boolean b) Sets whether the synchronizing operation is running.
-
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 thefilesystem
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
-