class FidlThread

Defined at line 21 of file ../../src/media/audio/services/common/fidl_thread.h

Encapsulates a thread which services FIDL requests on an `async_dispatcher_t`.

All methods are safe to call from any thread.

Public Methods

std::shared_ptr<FidlThread> CreateFromNewThread (std::string name)

Creates a FidlThread from a new thread. This creates a new async::Loop and starts a thread on

that loop.

Defined at line 15 of file ../../src/media/audio/services/common/fidl_thread.cc

std::string_view name ()

Reports the name of this thread.

Defined at line 32 of file ../../src/media/audio/services/common/fidl_thread.h

async_dispatcher_t * dispatcher ()

Returns the dispatcher which back this thread.

Defined at line 35 of file ../../src/media/audio/services/common/fidl_thread.h

std::shared_ptr<FidlThread> CreateFromCurrentThread (std::string name, async_dispatcher_t * dispatcher)

Creates a FidlThread from the current thread using the given dispatcher.

Defined at line 37 of file ../../src/media/audio/services/common/fidl_thread.cc

const ThreadChecker & checker ()

Returns a checker which validates that code is running on this thread.

Defined at line 38 of file ../../src/media/audio/services/common/fidl_thread.h

zx_status_t PostTask (fit::closure task)

Posts a task to this thread.

Defined at line 41 of file ../../src/media/audio/services/common/fidl_thread.h