When a Thread within a Pool is being considered as the recipient of an Event, the function GetWantsThisEvent(AEvent) is called (the name of that method may change if I can think of a better one)
GetWantsThisEvent returns True by default, but can be overridden with custom Criteria (defined by the TLKEventThread descendant type) to determine if it is willing to process a given Event.
A potential use-case for this would be if the Event Thread knows that it's going to take a long time to process either its current Event, or future Events in its workload.
Confusing title, but simple premise:
GetWantsThisEvent(AEvent)
is called (the name of that method may change if I can think of a better one)GetWantsThisEvent
returnsTrue
by default, but can be overridden with custom Criteria (defined by theTLKEventThread
descendant type) to determine if it is willing to process a given Event.A potential use-case for this would be if the Event Thread knows that it's going to take a long time to process either its current Event, or future Events in its workload.