Home
last modified time | relevance | path

Searched refs:cleanupHooks_ (Results 1 - 2 of 2) sorted by relevance

/foundation/arkui/napi/native_engine/
H A Dnative_engine.cpp719 auto insertion_info = cleanupHooks_.emplace(arg, in AddCleanupHook()
730 auto cleanupHook = cleanupHooks_.find(arg); in RemoveCleanupHook()
731 if (cleanupHook != cleanupHooks_.end() && cleanupHook->second.first == fun) { in RemoveCleanupHook()
732 cleanupHooks_.erase(arg); in RemoveCleanupHook()
744 while (!cleanupHooks_.empty()) { in RunCleanup()
745 HILOG_DEBUG("NativeEngine::RunCleanup cleanupHooks_ is not empty"); in RunCleanup()
748 std::vector<CleanupCallbackTuple> callbacks(cleanupHooks_.begin(), cleanupHooks_.end()); in RunCleanup()
749 // We can't erase the copied elements from `cleanupHooks_` yet, because we in RunCleanup()
760 if (cleanupHooks_ in RunCleanup()
[all...]
H A Dnative_engine.h577 std::unordered_map<void*, std::pair<CleanupCallback, uint64_t>> cleanupHooks_; member in NativeEngine

Completed in 3 milliseconds