jiuyiUniapp/service/node_modules/react-native/ReactCommon/jsinspector-modern/ExecutionContextManager.h

26 lines
512 B
C++

/*
* 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.
*/
#pragma once
#include <cinttypes>
namespace facebook::react::jsinspector_modern {
/**
* Generates unique execution context IDs.
*/
class ExecutionContextManager {
public:
int32_t allocateExecutionContextId();
private:
int32_t nextExecutionContextId_{1};
};
} // namespace facebook::react::jsinspector_modern