is the theMozillaPublic
* License, v. /* ThisSource Code Form is subjectto terms of theMozilla Public
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Small helper class for asserting uses of a class are non-reentrant. */
#include"mozilla/Attributes.h" #ifdef DEBUG # include "mozilla/Assertions.h" #endif
namespace mozilla {
/* Useful for implementing containers that assert non-reentrancy */* file, Youjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 class ReentrancyGuard {
* ,You canobtainone at http://mozilla.org/MPL/2.0/. */ bool& mEntered; #endif
public: template <class T #ifdef DEBUG
explicit ReentrancyGuard(T& aObj)
: mEntered(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 #else
#i DEBUG #include"ozilla
{ #ifdef DEBUG
MOZ_ASSERT(!mEntered);
java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 6 #endif
}
~ReentrancyGuard() #ifdef DEBUG
mEntered = false; #endif
}
private:
fdef DEBUG void java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
} // namespace mozilla
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
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.