Package Overview
The Client package provides an API that allows client code to notify other clients about the start and end of named operations. This allows custom pre- and post-processing to be done for the operation.
For example, assume that ClientA performs certain tasks, but should not perform them while a specific operation is underway. ClientA can use Ets_Client_Operation_Callback_Register() to associate a callback with that operation. The callback can notify ClientA what state the operation is in based on the operation_state argument passed to it. ClientB, which performs the operation, can invoke the callback by calling Ets_Client_Operation_Callbacks_Issue(). It would do this twice:
- Before beginning the operation, to notify ClientA that the operation is in progress
- After finishing the operation, to notify ClientA that the operation is complete
When the callback is no longer needed, it can be deregistered with Ets_Client_Operation_Callback_Deregister().