mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-12 12:47:39 +02:00
Add locking for threaded operation.
This commit is contained in:
@@ -212,7 +212,7 @@ class DataLayerInterface(interfaces.configuration.ConfigurableInterface, metacla
|
||||
progress = DummyProgress() # type: ProgressValue
|
||||
scan_iterator = functools.partial(self._scan_iterator, scanner, sections)
|
||||
scan_metric = self._scan_metric(scanner, sections)
|
||||
if scanner.thread_safe and not constants.DISABLE_MULTITHREADED_SCANNING:
|
||||
if scanner.thread_safe and not constants.PARALLELISM:
|
||||
progress = multiprocessing.Manager().Value("Q", 0)
|
||||
scan_chunk = functools.partial(self._scan_chunk, scanner, progress)
|
||||
with multiprocessing.Pool() as pool:
|
||||
|
||||
Reference in New Issue
Block a user