diff --git a/services/common/include/ffrt_timer.h b/utils/common_utils/include/ffrt_timer.h similarity index 90% rename from services/common/include/ffrt_timer.h rename to utils/common_utils/include/ffrt_timer.h index 05b62c30f35981e3162d5fe6776fd4d0afe3351b..2e5111fa64c49284454f586127f3424117c34717 100755 --- a/services/common/include/ffrt_timer.h +++ b/utils/common_utils/include/ffrt_timer.h @@ -26,7 +26,6 @@ #include "ffrt.h" #include "ffrt_inner.h" -#include "net_mgr_log_wrapper.h" namespace OHOS { namespace NetManagerStandard { @@ -51,18 +50,12 @@ public: { StopPro(); timer_ = ffrt_timer_start(ffrt_qos_default, interval, data, taskFun, true); - if (timer_ == ffrt_error) { - NETMGR_LOG_E("ffrt_timer_start err[%{public}d]", timer_); - } } void StopPro() { if (timer_ != ffrt_error) { auto ret = ffrt_timer_stop(ffrt_qos_default, timer_); - if (ret == ffrt_error) { - NETMGR_LOG_E("ffrt_timer_stop err[%{public}d]", ret); - } } } @@ -71,7 +64,6 @@ public: if (stopStatus_ == false) { return; } - NETMGR_LOG_D("start thread..."); stopStatus_ = false; std::function startTask = [this, interval, taskFun]() { while (!tryStopFlag_) { @@ -93,7 +85,6 @@ public: if (stopStatus_ || tryStopFlag_) { return; } - NETMGR_LOG_D("stop thread..."); tryStopFlag_ = true; std::unique_lock locker(mutex_); timerCond_.wait(locker, [this] { return stopStatus_ == true; });