The title kind of says it all. Is there a way to tell whether a TSelector is a client or a worker? I would like to make some of the overloaded functions behave differently for a worker than for a client.
SlaveBegin() is guaranteed to only be called on the workers - you could simply set a flag in there. Would that solve it? (I’m not sure about your nomenclature “client” vs “worker” - Proof usually uses the awkward and antiquated words “master” and “slave”, and did a bit of a migration to “client” (for the user process) and “server” (for the parallel processing processes).