class LoopBackedDispatcher

Defined at line 27 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.h

An async_dispatcher_t backed by an async Loop running on a dedicated thread.

The Loop is owned by the `LoopBackedDispatcher` instance and is shut down

iff the `LoopBackedDispatcher` is destroyed.

The Loop allows dispatch of async tasks and interrupt requests.

Public Methods

zx::result<std::unique_ptr<Dispatcher>> Create (zx_device_t * device, std::string_view thread_name, std::string_view scheduler_role)

Factory function that creates an asynchronous dispatch Loop and starts its

worker thread of `thread_name` and as `scheduler_role`.

Preferred for production use.

`device` must not be null.

`thread_name` must not be empty.

`scheduler_role` is a hint. It's not an error if `LoopBackedDispatcher` fails to

set the worker thread's scheduler role.

Defined at line 33 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.cc

void LoopBackedDispatcher (const LoopBackedDispatcher & )

Defined at line 53 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.h

void LoopBackedDispatcher (LoopBackedDispatcher && )

Defined at line 54 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.h

LoopBackedDispatcher & operator= (const LoopBackedDispatcher & )

Defined at line 55 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.h

LoopBackedDispatcher & operator= (LoopBackedDispatcher && )

Defined at line 56 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.h

async_dispatcher_t * async_dispatcher ()

Dispatcher:

Defined at line 59 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.h

zx::result<std::unique_ptr<Dispatcher>> Create (std::string_view thread_name)

Factory function that creates an asynchronous dispatch Loop and starts its

worker thread of `thread_name` without setting the scheduling role.

`thread_name` must not be empty.

Defined at line 63 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.cc

void LoopBackedDispatcher ()

Prefer the `Create()` factory method.

Defined at line 82 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.cc

void ~LoopBackedDispatcher ()

Defined at line 84 of file ../../src/graphics/display/lib/driver-framework-migration-utils/dispatcher/loop-backed-dispatcher.cc