class ScopedThreadDispatcherSetter

Defined at line 30 of file ../../src/ui/scenic/lib/utils/check_is_on_thread.h

RAII object to set the main and input thread dispatchers for testing or

production initialization.

This object ensures that the dispatchers are set for the duration of its scope

and automatically reset to nullptr when it goes out of scope.

It is a fatal error (FX_DCHECK) to create a ScopedThreadDispatcherSetter if

the dispatchers are already set (i.e., not nullptr). This prevents nested

overrides and ensures test isolation.

Public Methods

void ScopedThreadDispatcherSetter (async_dispatcher_t * main_dispatcher, async_dispatcher_t * input_dispatcher)

Sets the main and input thread dispatchers.

Defined at line 20 of file ../../src/ui/scenic/lib/utils/check_is_on_thread.cc

void ~ScopedThreadDispatcherSetter ()

Defined at line 30 of file ../../src/ui/scenic/lib/utils/check_is_on_thread.cc