/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// A container for XPCOM streams (e.g. nsIAsyncInputStream) and other // refcounted classes that need to have the Close() method called explicitly // before they are destroyed. template <typename T> class AutoClose {
public:
AutoClose() : mMutex("net::AutoClose.mMutex") {}
~AutoClose() { CloseAndRelease(); }
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 und die Messung sind noch experimentell.