mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-16 14:33:24 +09:00
[MG_Remote, MG_Test, ci] (P7): red-once controls for the latch's decline-and-close half, a control pump that declines after the latch, the pre-gate ahead of the applier's stamp, and a PH-5 raw-peer row that discriminates
This commit is contained in:
@@ -1576,6 +1576,21 @@ namespace MobileGL::MG_Remote::Wire {
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Bool PipeWireDecoder::AdmitOrDecline(const Transport::RingRecordView& record) {
|
||||
if ((record.flags & Transport::kRecPad) != 0 ||
|
||||
record.kind == Transport::kRingPadRecordKind) {
|
||||
return true; // DecodeAndApply's pad arm names it (R-9)
|
||||
}
|
||||
const Uint64 size = record.payloadSize + sizeof(MGPWireRecHeader);
|
||||
if (AdmitsTheGeneratedGate(static_cast<MGPWireOp>(record.kind), size)) return true;
|
||||
// Latched by name. The record is declined unread and counted, exactly as DecodeAndApply
|
||||
// counts one it declines: the tally is +1 per record whatever became of it.
|
||||
m_resolvedCount = 0;
|
||||
m_lastAcceptanceKnown = false;
|
||||
++m_applySeq;
|
||||
return false;
|
||||
}
|
||||
|
||||
Bool PipeWireDecoder::DecodeAndApply(const Transport::RingRecordView& record) {
|
||||
if (!Valid()) {
|
||||
WireProtocolFatal("PipeWireDecoder::DecodeAndApply", "no control page or segment table");
|
||||
|
||||
Reference in New Issue
Block a user