From 0623418cc4f4af7d80ddfe5b2e710062e74c9f93 Mon Sep 17 00:00:00 2001 From: liu-zelin Date: Sat, 7 Sep 2024 18:12:01 +0800 Subject: [PATCH] Sync blue and yellow zone Issue: https://gitee.com/openharmony/commonlibrary_ets_utils/issues/IAPMJM?from=project-issue Signed-off-by: liu-zelin Change-Id: I1f4a1663af338159466a40f1a80f95802f4ed9b2 --- js_concurrent_module/utils/locks/lock_request.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js_concurrent_module/utils/locks/lock_request.cpp b/js_concurrent_module/utils/locks/lock_request.cpp index cd22cdda..379852aa 100644 --- a/js_concurrent_module/utils/locks/lock_request.cpp +++ b/js_concurrent_module/utils/locks/lock_request.cpp @@ -60,7 +60,7 @@ LockRequest::LockRequest(AsyncLock *lock, tid_t tid, napi_env env, napi_ref cb, void LockRequest::EnvCleanUp(void *arg) { - LockRequest *lockRequest = reinterpret_cast(arg); + LockRequest *lockRequest = static_cast(arg); std::unique_lock guard(lockRequest->lockRequestMutex_); napi_cancel_async_work(lockRequest->env_, lockRequest->work_); napi_delete_async_work(lockRequest->env_, lockRequest->work_); @@ -84,7 +84,7 @@ LockRequest::~LockRequest() void LockRequest::AsyncAfterWorkCallback(napi_env env, [[maybe_unused]] napi_status status, void *data) { - LockRequest *lockRequest = static_cast(data); + LockRequest* lockRequest = reinterpret_cast(data); napi_delete_async_work(env, lockRequest->work_); napi_remove_env_cleanup_hook(env, EnvCleanUp, lockRequest); lockRequest->work_ = nullptr;