Package ghidra.framework.store
Class FileSystemSynchronizer
- java.lang.Object
-
- ghidra.framework.store.FileSystemSynchronizer
-
public class FileSystemSynchronizer extends java.lang.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 Summary
Constructors Constructor Description FileSystemSynchronizer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isSynchronizing()
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.
-
-
-
Method Detail
-
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
-
-