Package ghidra.app.decompiler.parallel
Class DecompilerCallback<R>
java.lang.Object
ghidra.app.decompiler.parallel.DecompilerCallback<R>
- Type Parameters:
R
- the return type
An implementation of
QCallback
that performs the management of the
DecompInterface
instances using a Pool.
Clients will get a chance to configure each newly created decompiler via the passed-in
DecompileConfigurer
.
Clients must implement process(DecompileResults, TaskMonitor)
, which will be
called for each function that is decompiled.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Call this when all work is done so that the pooled decompilers can be disposedabstract R
process
(DecompileResults results, TaskMonitor monitor) This is called when a function is decompiled.process
(Function f, TaskMonitor monitor) Processes the given item in background thread provided by a GThreadPool.void
setTimeout
(int timeoutSecs) Sets the timeout for each decompile
-
Constructor Details
-
DecompilerCallback
-
-
Method Details
-
process
This is called when a function is decompiled.- Parameters:
results
- the decompiled resultsmonitor
- the task monitor- Returns:
- the client result
- Throws:
Exception
- if there is any issue processing the given results
-
process
Description copied from interface:QCallback
Processes the given item in background thread provided by a GThreadPool. -
setTimeout
public void setTimeout(int timeoutSecs) Sets the timeout for each decompile- Parameters:
timeoutSecs
- the timeout in seconds
-
dispose
public void dispose()Call this when all work is done so that the pooled decompilers can be disposed
-