class GraphThread

Defined at line 21 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

An abstract base class which wraps a PipelineThread.

Public Methods

ThreadId id ()

Returns the thread's ID.

This is guaranteed to be a unique identifier.

Safe to call from any thread.

Defined at line 26 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

std::string_view name ()

Returns the thread's name. This is used for diagnostics only.

The name may not be a unique identifier.

Safe to call from any thread.

Defined at line 31 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

void PushTask (std::function<void ()> fn)

Runs an asynchronous task on this thread.

Defined at line 40 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

PipelineThreadPtr pipeline_thread ()

Returns the underlying PipelineThread.

zx::duration mix_period ()

Reports the thread's mix period, or zero if not a mix thread.

void IncrementClockUsage (std::shared_ptr<Clock> clock)

Increments number of `clock` usages in this thread.

void DecrementClockUsage (std::shared_ptr<Clock> clock)

Decrements number of `clock` usages in this thread.

Protected Methods

void GraphThread (std::shared_ptr<GlobalTaskQueue> global_task_queue)

Defined at line 49 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

void ~GraphThread ()

Defined at line 52 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

void GraphThread (const GraphThread & )

Defined at line 54 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

GraphThread & operator= (const GraphThread & )

Defined at line 55 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

void GraphThread (GraphThread && )

Defined at line 57 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h

GraphThread & operator= (GraphThread && )

Defined at line 58 of file ../../src/media/audio/services/mixer/fidl/graph_thread.h