summaryrefslogtreecommitdiffstats
path: root/runtime/thread_list.cc
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2013-07-26 10:54:15 -0700
committerBrian Carlstrom <bdc@google.com>2013-07-26 11:55:10 -0700
commit7934ac288acfb2552bb0b06ec1f61e5820d924a4 (patch)
tree43f3acd8af7fd34d4ae7b64f6e06bb8429d74bb8 /runtime/thread_list.cc
parentfb331d7ca004f39608fcfdae49d38df90c702ea9 (diff)
downloadart-7934ac288acfb2552bb0b06ec1f61e5820d924a4.zip
art-7934ac288acfb2552bb0b06ec1f61e5820d924a4.tar.gz
art-7934ac288acfb2552bb0b06ec1f61e5820d924a4.tar.bz2
Fix cpplint whitespace/comments issues
Change-Id: Iae286862c85fb8fd8901eae1204cd6d271d69496
Diffstat (limited to 'runtime/thread_list.cc')
-rw-r--r--runtime/thread_list.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/thread_list.cc b/runtime/thread_list.cc
index 7aa835a..9c28c87 100644
--- a/runtime/thread_list.cc
+++ b/runtime/thread_list.cc
@@ -474,7 +474,7 @@ void ThreadList::WaitForOtherNonDaemonThreadsToExit() {
void ThreadList::SuspendAllDaemonThreads() {
Thread* self = Thread::Current();
MutexLock mu(self, *Locks::thread_list_lock_);
- { // Tell all the daemons it's time to suspend.
+ { // Tell all the daemons it's time to suspend.
MutexLock mu2(self, *Locks::thread_suspend_count_lock_);
for (It it = list_.begin(), end = list_.end(); it != end; ++it) {
Thread* thread = *it;
@@ -591,7 +591,7 @@ uint32_t ThreadList::AllocThreadId(Thread* self) {
for (size_t i = 0; i < allocated_ids_.size(); ++i) {
if (!allocated_ids_[i]) {
allocated_ids_.set(i);
- return i + 1; // Zero is reserved to mean "invalid".
+ return i + 1; // Zero is reserved to mean "invalid".
}
}
LOG(FATAL) << "Out of internal thread ids";
@@ -600,7 +600,7 @@ uint32_t ThreadList::AllocThreadId(Thread* self) {
void ThreadList::ReleaseThreadId(Thread* self, uint32_t id) {
MutexLock mu(self, allocated_ids_lock_);
- --id; // Zero is reserved to mean "invalid".
+ --id; // Zero is reserved to mean "invalid".
DCHECK(allocated_ids_[id]) << id;
allocated_ids_.reset(id);
}