aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/pthread_exit.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-05-14 10:02:03 -0700
committerElliott Hughes <enh@google.com>2014-05-14 10:02:03 -0700
commit1728b2396591853345507a063ed6075dfd251706 (patch)
tree7083cd234073afa5179b94b3d978550c890af90c /libc/bionic/pthread_exit.cpp
parentbac795586bbc5dcbe886d8d781710f60c4c19d9b (diff)
downloadandroid_bionic-1728b2396591853345507a063ed6075dfd251706.tar.gz
android_bionic-1728b2396591853345507a063ed6075dfd251706.tar.bz2
android_bionic-1728b2396591853345507a063ed6075dfd251706.zip
Switch to g_ for globals.
That's what the Google style guide recommends, and we're starting to get a mix. Change-Id: Ib0c53a890bb5deed5c679e887541a715faea91fc
Diffstat (limited to 'libc/bionic/pthread_exit.cpp')
-rw-r--r--libc/bionic/pthread_exit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/pthread_exit.cpp b/libc/bionic/pthread_exit.cpp
index 269276233..de818cdb7 100644
--- a/libc/bionic/pthread_exit.cpp
+++ b/libc/bionic/pthread_exit.cpp
@@ -92,7 +92,7 @@ void pthread_exit(void* return_value) {
size_t stack_size = thread->attr.stack_size;
bool user_allocated_stack = ((thread->attr.flags & PTHREAD_ATTR_FLAG_USER_ALLOCATED_STACK) != 0);
- pthread_mutex_lock(&gThreadListLock);
+ pthread_mutex_lock(&g_thread_list_lock);
if ((thread->attr.flags & PTHREAD_ATTR_FLAG_DETACHED) != 0) {
// The thread is detached, so we can free the pthread_internal_t.
// First make sure that the kernel does not try to clear the tid field
@@ -110,7 +110,7 @@ void pthread_exit(void* return_value) {
// pthread_join is responsible for destroying the pthread_internal_t for non-detached threads.
// The kernel will futex_wake on the pthread_internal_t::tid field to wake pthread_join.
}
- pthread_mutex_unlock(&gThreadListLock);
+ pthread_mutex_unlock(&g_thread_list_lock);
if (user_allocated_stack) {
// Cleaning up this thread's stack is the creator's responsibility, not ours.