Bug 1688832: part 5) Add `static` `AccessibleCaretManager::GetSelection`, `::GetFrame...
[gecko.git] / xpcom / threads / ThreadLocalVariables.cpp
blob606c0c6384e80a7a5ab4f2ccf830d5fe9a26bfeb
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
8 // infinite loop
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);