Navigation
Unreal Engine C++ API Reference > Developer > DirectoryWatcher > FAsyncFileHasher
References
Module | DirectoryWatcher |
Header | /Engine/Source/Developer/DirectoryWatcher/Public/FileCache.h |
Include | #include "FileCache.h" |
Source | /Engine/Source/Developer/DirectoryWatcher/Private/FileCache.cpp |
FAsyncFileHasher
&40;
TArray< FFilenameAndHash > InFilesThatNeedHashing
&41;
Remarks
Constructor
Threading strategy for FAsyncFileHasher: The task is constructed on the main thread with its Data. The array 'Data' never changes size. The task thread moves along setting file hashes, while the main thread trails behind accessing the completed entries. We should thus never have 2 threads accessing the same memory, except for the atomic 'CurrentIndex'