Quelle InputChannelThrottleQueueParent.cpp
Sprache: C
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim:set ts=4 sw=4 sts=4 et cin: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// When ref count goes down to 1 (held internally by IPDL), it means that // we are done with this ThrottleQueue. We should send a delete message // to delete the InputChannelThrottleQueueChild in socket process. if (count == 1 && CanSend()) {
mozilla::Unused << Send__delete__(this); return 1;
} return count;
}
NS_IMETHODIMP
InputChannelThrottleQueueParent::Init(uint32_t aMeanBytesPerSecond,
uint32_t aMaxBytesPerSecond) { // Can be called on any thread. if (aMeanBytesPerSecond == 0 || aMaxBytesPerSecond == 0 ||
aMaxBytesPerSecond < aMeanBytesPerSecond) { return NS_ERROR_ILLEGAL_VALUE;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.