38 static bool notifiedUnavailable =
false;
39 static bool notifiedAvailable =
false;
41 auto controller =
controls[handle.ref.index].controller;
44 if (!notifiedUnavailable) {
45 LOGP(info,
"Controller for {} not yet available.",
specs[handle.ref.index].id);
46 notifiedUnavailable =
true;
50 if (notifiedUnavailable && !notifiedAvailable) {
51 LOGP(info,
"Controller for {} now available.",
specs[handle.ref.index].id);
52 notifiedAvailable =
true;
56 "Flushing message to %{public}s: %{public}s",
57 specs[handle.ref.index].id.c_str(), handle.message.c_str());
58 controller->write(handle.message.c_str(), handle.message.size());
62 return this->
controls[handle.ref.index].controller !=
nullptr;
64 auto it = std::remove_if(
messages.begin(),
messages.end(), checkIfController);
65 auto r = std::distance(it,
messages.end());
#define O2_DECLARE_DYNAMIC_LOG(name)
#define O2_SIGNPOST_ID_GENERATE(name, log)
#define O2_SIGNPOST_EVENT_EMIT(log, id, name, format,...)