turbo-tasks: implement order dependencies for scheduling order control
Add a new `Vc::add_order_dependency()` API that lets a task declare it should
be scheduled after another task during invalidation. Unlike output/cell
dependencies, order dependencies do NOT trigger invalidation when the
depended-on task's output changes — they only affect leaf distance propagation
and scheduling priority.
Implementation follows the same bidirectional edge pattern as output
dependencies: `order_dependent` (reverse, on depended-upon task) and
`order_dependencies` (forward, on dependent task), with an
`outdated_order_dependencies` transient snapshot for lifecycle management.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment