Home
last modified time | relevance | path

Searched refs:hasInstance (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/
H A Djs_test_buffer_napi.cpp127 bool hasInstance = false; in BufferHasInstanceFun() local
132 NAPI_CALL(env, napi_is_buffer(env, theBuffer, &hasInstance)); in BufferHasInstanceFun()
133 NAPI_ASSERT(env, hasInstance, "BufferHasInstanceFun: instance is not a buffer"); in BufferHasInstanceFun()
135 NAPI_CALL(env, napi_get_boolean(env, hasInstance, &returnValue)); in BufferHasInstanceFun()
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/runtime/include/
H A Djs_runtime.h171 static std::atomic<bool> hasInstance; variable
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_runtime.cpp155 std::atomic<bool> JsRuntime::hasInstance(false);
208 if (JsRuntime::hasInstance.exchange(true, std::memory_order_relaxed)) { in StartDebugMode()
345 if (JsRuntime::hasInstance.exchange(true, std::memory_order_relaxed)) { in StartProfiler()