SERVER-137779In Progress

Make PlanYieldPolicySBE thread-capable

The object used for performing yielding captures the point for the clock from the original OperationContext, so it cannot be used for the clones of the stages meant to run in a separate thread unless we double check that the clock is thread safe (the main OperationContext should already survive until all the threads have been stopped). Alternatively, change PlanYieldPolicySBE so that it uses the clock from the OperationContext that is provided at runtime and avoid providing one in the constructo

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
PQm1