class TestSynchronizedDispatcher

Defined at line 19 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.h

A RAII wrapper around an fdf::SynchronizedDispatcher that is meant for testing.

There are two types of TestSynchronizedDispatcher: Default and managed. Both types

are described in length down below at |kDispatcherDefault| and |kDispatcherManaged|.

Public Methods

void TestSynchronizedDispatcher (DispatcherType type)

This will start the underlying dispatcher with the given type. If the underlying

dispatcher fails to start, this constructor will throw an assert.

Defined at line 18 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.cc

void TestSynchronizedDispatcher (TestSynchronizedDispatcher && other)

Don't allow moving since raw pointers to this are captured.

Defined at line 33 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.h

TestSynchronizedDispatcher & operator= (TestSynchronizedDispatcher && other)

Defined at line 34 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.h

void ~TestSynchronizedDispatcher ()

Initiates and waits for shutdown of the dispatcher.

When the destructor returns the shutdown has completed.

Defined at line 37 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.cc

const fdf::SynchronizedDispatcher & driver_dispatcher ()

Defined at line 40 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.h

async_dispatcher_t * dispatcher ()

Defined at line 41 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.h

const void * owner ()

Defined at line 43 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.h

Enumerations

enum DispatcherType
Name Value
Default 0
Managed 1

The type of the dispatcher.

See |fdf::kDispatcherDefault| and |fdf::kDispatcherManaged| for a full description of each.

Defined at line 23 of file ../../sdk/lib/driver/runtime/testing/cpp/internal/dispatcher.h