Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.cc

Issue 99493002: Give names to a couple base::AutoLocks missing them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/in_process_command_buffer.cc
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc
index bd71889d2b80ef46e87a86d00849b0dfe471372b..ab6e354156b72d47d4ccf5e17369a1a7e48b16c4 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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698