/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/jsinspector-modern/ExecutionContextManager.cpp
19 строк
500 B
Moti Zilberman
Assign auto-incrementing execution context IDs (#43064)
16 фев 2024, 22:16
16 фев 2024, 22:16
828ad04
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ExecutionContextManager.h" #include <cassert> namespace facebook::react::jsinspector_modern { int32_t ExecutionContextManager::allocateExecutionContextId() { assert(nextExecutionContextId_ != INT32_MAX); return nextExecutionContextId_++; } } // namespace facebook::react::jsinspector_modern