WorkerThreadTermination Event

Fires just before a worker thread is terminated.

Syntax

// CBFSWorkerThreadTerminationEventArgs carries the CBFS WorkerThreadTermination event's parameters.
type CBFSWorkerThreadTerminationEventArgs struct {...}


// CBFSWorkerThreadTerminationEvent defines the signature of the CBFS WorkerThreadTermination event's handler function.
type CBFSWorkerThreadTerminationEvent func(sender *CBFS, args *CBFSWorkerThreadTerminationEventArgs)

func (obj *CBFS) GetOnWorkerThreadTerminationHandler() CBFSWorkerThreadTerminationEvent
func (obj *CBFS) SetOnWorkerThreadTerminationHandler(handlerFunc CBFSWorkerThreadTerminationEvent)

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.

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Connect 2020 Go Edition - Version 20.0 [Build 8348]