class DriverRuntimeBackedDispatcher
Defined at line 32 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.h
An async_dispatcher_t backed by an `fdf::SynchronizedDispatcher` co-managed
by the Driver Framework.
We use `fdf::SynchronizedDispatcher` as the backend, because it allows
dispatching both async tasks and Zircon interrupt requests.
The `fdf::SynchronizedDispatcher` is shut down when the
`DriverRuntimeBackedDispatcher` is destroyed, or the Driver Framework shuts
down the driver by which the `fdf::SynchronizedDispatcher` is managed,
whichever is earlier.
The worker thread which the async dispatcher dispatches its async tasks to is
managed by the Driver Framework. The dispatcher is not guaranteed to have
its dedicated thread.
Public Methods
zx::result<std::unique_ptr<Dispatcher>> Create (std::string_view name, std::string_view scheduler_role)
Factory function that creates a `DriverRuntimeBackedDispatcher` of `name` with
the `schedule_role` hint.
Preferred for production use.
`device` must not be null.
`name` must not be empty.
`scheduler_role` is a hint. It may or not impact the priority the work
scheduler against the dispatcher is handled at. It may or may not impact
the ability for other drivers to share Zircon threads with the dispatcher.
Defined at line 19 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.cc
void DriverRuntimeBackedDispatcher (fdf::SynchronizedDispatcher fdf_dispatcher)
Prefer the `Create()` factory method.
`fdf_dispatcher` must be valid.
Defined at line 43 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.cc
void ~DriverRuntimeBackedDispatcher ()
Defined at line 49 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.cc
void DriverRuntimeBackedDispatcher (const DriverRuntimeBackedDispatcher & )
Defined at line 54 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.h
void DriverRuntimeBackedDispatcher (DriverRuntimeBackedDispatcher && )
Defined at line 55 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.h
DriverRuntimeBackedDispatcher & operator= (const DriverRuntimeBackedDispatcher & )
Defined at line 56 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.h
DriverRuntimeBackedDispatcher & operator= (DriverRuntimeBackedDispatcher && )
Defined at line 57 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.h
async_dispatcher_t * async_dispatcher ()
Dispatcher:
Defined at line 60 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/driver-runtime-backed-dispatcher.h