class SyncManager
Defined at line 1297 of file fidling/gen/src/connectivity/network/testing/netemul/sync-manager/fidl/sync/hlcpp/fuchsia/netemul/sync/cpp/fidl.h
The SyncManager is the entry point to attach a client to a bus or use other synchronization
primitives.
The client's 'ticket' to remain on the bus is the channel obtained through the 'BusSubscribe' call.
Public Members
static const char[] Name_
Public Methods
void ~SyncManager ()
void BusSubscribe (::std::string bus_name, ::std::string client_name, ::fidl::InterfaceRequest< ::fuchsia::netemul::sync::Bus> bus)
Subscribes to bus 'busName' with a given client name.
Duplicate client names are disallowed and will cause the request to return unfulfilled.
void WaitForBarrierThreshold (::std::string barrier_name, uint32_t threshold, int64_t timeout, WaitForBarrierThresholdCallback callback)
Waits on a named counter barrier with name `barrierName`.
Functon will return true if the number of waits pending on the barrier matches or exceeds
`threshold` before `timeout` (nsec) expires.
Use `timeout`
<
= 0 for indefinite wait.