mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Automated Code Change
PiperOrigin-RevId: 877067884
This commit is contained in:
@@ -31,7 +31,7 @@ bool TimerImpl::Start(int delay, int period,
|
||||
if (period < 0) {
|
||||
period = 0;
|
||||
}
|
||||
absl::MutexLock lock(&mutex_);
|
||||
absl::MutexLock lock(mutex_);
|
||||
if (internal_timer_ != nullptr) {
|
||||
LOG(INFO) << "The timer is already running.";
|
||||
return false;
|
||||
@@ -47,7 +47,7 @@ bool TimerImpl::Start(int delay, int period,
|
||||
}
|
||||
|
||||
void TimerImpl::Stop() {
|
||||
absl::MutexLock lock(&mutex_);
|
||||
absl::MutexLock lock(mutex_);
|
||||
if (internal_timer_ == nullptr) {
|
||||
return;
|
||||
}
|
||||
@@ -57,7 +57,7 @@ void TimerImpl::Stop() {
|
||||
}
|
||||
|
||||
bool TimerImpl::IsRunning() {
|
||||
absl::MutexLock lock(&mutex_);
|
||||
absl::MutexLock lock(mutex_);
|
||||
return (internal_timer_ != nullptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user