class ClockRegistry
Defined at line 67 of file ../../src/media/audio/services/mixer/fidl/clock_registry.h
Contains the set of all clocks used by a single mix graph. All clocks contained in this registry
are guaranteed to have unique koids. Given two `std::shared_ptr
<Clock
>` pointers `c1` and `c2`:
```
c1->koid() == c2->koid() iff c1.get() == c2.get()
```
After `Add(clock)`, the registry creates a mapping from `clock->koid()` to `weak_ptr(clock)`.
This mapping will live until all other references to `clock` are dropped, at which point the
mapping will be garbage collected.
Not safe for concurrent use.
Public Methods
void Add (std::shared_ptr<Clock> clock)
Adds the given clock.
REQUIRED: There must not by any registered clocks with the same koid as `clock`.
Defined at line 28 of file ../../src/media/audio/services/mixer/fidl/clock_registry.cc
zx::result<std::shared_ptr<Clock>> Find (zx_koid_t koid)
Looks up the clock with the given koid.
Errors:
* ZX_ERR_NOT_FOUND if a clock with the same koid does not exist.
Defined at line 43 of file ../../src/media/audio/services/mixer/fidl/clock_registry.cc
zx::result<std::shared_ptr<Clock>> Find (const zx::clock & handle)
Looks up the clock with the same koid as `handle`.
Errors:
* ZX_ERR_BAD_HANDLE if the handle is invalid.
* ZX_ERR_NOT_FOUND if a clock with the same koid does not exist.
Defined at line 58 of file ../../src/media/audio/services/mixer/fidl/clock_registry.cc