Releases a thread's lock on the TInferenceEngine component allowing other threads to complete their Lock method. You must unlock the TInferenceEngine to allow other threads to not be blocked by Lock method calls.
Namespace: InferenceEngine
Delphi |
public |
Note that the TInferenceEngine component is not thread safe. The Lock and Unlock methods provide a relatively easy way to add thread safety in your applications. If you always call Lock before modifying the TInferenceEngine, you can block other areas in your code from stomping on the inference engine. Most importantly, the TInferenceEngine component uses the Lock and Unlock methods in its Run execution. Before every step, it calls the Lock method, and after each step, it calls the Unlock method. Therefore, you can have the inference engine executing in another thread and safely pause execution after a step in order to modify the inference engine |
Reference |