diff options
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/service/in_process_command_buffer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc index bd71889..ab6e354 100644 --- a/gpu/command_buffer/service/in_process_command_buffer.cc +++ b/gpu/command_buffer/service/in_process_command_buffer.cc @@ -163,7 +163,7 @@ base::LazyInstance<base::Lock> SchedulerClientBase::all_clients_lock_ = LAZY_INSTANCE_INITIALIZER; SchedulerClientBase::SchedulerClientBase(bool need_thread) { - base::AutoLock(all_clients_lock_.Get()); + base::AutoLock lock(all_clients_lock_.Get()); if (need_thread) { if (!all_clients_.Get().empty()) { SchedulerClientBase* other = *all_clients_.Get().begin(); @@ -177,12 +177,12 @@ SchedulerClientBase::SchedulerClientBase(bool need_thread) { } SchedulerClientBase::~SchedulerClientBase() { - base::AutoLock(all_clients_lock_.Get()); + base::AutoLock lock(all_clients_lock_.Get()); all_clients_.Get().erase(this); } bool SchedulerClientBase::HasClients() { - base::AutoLock(all_clients_lock_.Get()); + base::AutoLock lock(all_clients_lock_.Get()); return !all_clients_.Get().empty(); } |