Page MenuHomePhabricator

Pass lifetimebound reference to SingleThreadedSchedulerClient
ClosedPublic

Authored by PiRK on Feb 14 2023, 15:21.

Details

Summary

Currently a pointer is passed, which is confusing and requires run-time asserts to avoid nullptr dereference.

All call sites can pass a reference, so do that. Also mark it LIFETIMEBOUND to avoid call sites passing a temporary. Also, unrelated cleanup in touched lines.

This is a backport of core#25040

Test Plan

ninja all check-all