WorkerThreadTermination Event
Fires just before a worker thread is terminated.
Syntax
// CBMonitorWorkerThreadTerminationEventArgs carries the CBMonitor WorkerThreadTermination event's parameters. type CBMonitorWorkerThreadTerminationEventArgs struct {...} // CBMonitorWorkerThreadTerminationEvent defines the signature of the CBMonitor WorkerThreadTermination event's handler function. type CBMonitorWorkerThreadTerminationEvent func(sender *CBMonitor, args *CBMonitorWorkerThreadTerminationEventArgs) func (obj *CBMonitor) GetOnWorkerThreadTerminationHandler() CBMonitorWorkerThreadTerminationEvent func (obj *CBMonitor) SetOnWorkerThreadTerminationHandler(handlerFunc CBMonitorWorkerThreadTerminationEvent)
Remarks
This event fires just before a worker thread is terminated, in the context of that worker thread.
This event is optional; it is provided to give applications a chance to perform additional processing before a worker thread is terminated, such as deallocating per-thread objects.
The component maintains a pool of worker threads and uses them to fire events; please refer to the Threading and Concurrency topic for more information.
Any errors that occur during this event are ignored.
This event is fired synchronously; please refer to the Event Types topic for more information.