You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Tools/AssetProcessor/native/unittests
Chris Burel ce0bb1ca2b [AssetProcessor] Refactor the FileWatcher to use only one watch thread
This change reworks the AssetProcessor's FileWatcher so that it only uses
one thread. This is motivated by getting better support for inotify on
Linux. The previous architecture required calling `inotify_init` once for
each directory that was being watched, and using separate inotify instances
for each watched tree. In addition, having separate threads per watched
tree is not necessary, and just consumes system resources. Each platform
supports watching multiple directories with the same platform-specific
watcher API, so each platform has been updated accordingly.

The interface to the FileWatcher class is greatly simplified. Previously,
it supported client-supplied filtering of the paths that would generate
notifications. This was done by subclassing `FolderWatchBase` and
implementing `OnFileChange`. However, only one filter was ever used, so
that filter is now hard-coded in the FileWatcher class, and the classes
driving the old filtering mechanism are removed. Users of the interface
now have a much easier time, they just call `AddFolderWatch` with the path
to watch, and only have to connect to one set of signals, instead of
separate signals per watched directory.

Signed-off-by: Chris Burel <burelc@amazon.com>
4 years ago
..
AssetProcessingStateDataUnitTests.cpp XCode doesnt support files per configuration, using the old method (#3789) 4 years ago
AssetProcessingStateDataUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetProcessorManagerUnitTests.cpp Pass relative path IsFileExcluded so that only paths relative to the root scan folder are matched against the exclude filters (#4504) 4 years ago
AssetProcessorManagerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetProcessorServerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetProcessorServerUnitTests.h Removed ununeeded includes from EBus EBus.h and Policies.h (#4256) 4 years ago
AssetRequestHandlerUnitTests.cpp Code/Tools/AssetProcessor 4 years ago
AssetRequestHandlerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetScannerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetScannerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
BuilderSDKUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ConnectionManagerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ConnectionManagerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ConnectionUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ConnectionUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
FileWatcherUnitTests.cpp [AssetProcessor] Refactor the FileWatcher to use only one watch thread 4 years ago
FileWatcherUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MockApplicationManager.cpp Final fixes for MSVC 4 years ago
MockApplicationManager.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MockConnectionHandler.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PlatformConfigurationUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PlatformConfigurationUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
RCcontrollerUnitTests.cpp Fix clang 13 compilation problems (#5791) 4 years ago
RCcontrollerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
UnitTestRunner.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
UnitTestRunner.h Remove debug messages. (#5429) 4 years ago
UtilitiesUnitTests.cpp Code/Tools/AssetProcessor 4 years ago
UtilitiesUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago