1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "mozilla/ThreadLocal.h"
7 // This variable is used to ensure creating new URI doesn't put us in an
9 MOZ_THREAD_LOCAL(uint32_t) gTlsURLRecursionCount
;
11 void InitThreadLocalVariables() {
12 if (!gTlsURLRecursionCount
.init()) {
13 MOZ_CRASH("Could not init gTlsURLRecursionCount");
15 gTlsURLRecursionCount
.set(0);