diff options
author | Elliott Hughes <enh@google.com> | 2014-05-14 10:02:03 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-05-14 10:02:03 -0700 |
commit | 1728b2396591853345507a063ed6075dfd251706 (patch) | |
tree | 7083cd234073afa5179b94b3d978550c890af90c /libc/bionic/pthread_internals.cpp | |
parent | bac795586bbc5dcbe886d8d781710f60c4c19d9b (diff) | |
download | android_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_internals.cpp')
-rw-r--r-- | libc/bionic/pthread_internals.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/bionic/pthread_internals.cpp b/libc/bionic/pthread_internals.cpp index d4d609946..baa95d902 100644 --- a/libc/bionic/pthread_internals.cpp +++ b/libc/bionic/pthread_internals.cpp @@ -33,8 +33,8 @@ #include "private/bionic_tls.h" #include "private/ScopedPthreadMutexLocker.h" -pthread_internal_t* gThreadList = NULL; -pthread_mutex_t gThreadListLock = PTHREAD_MUTEX_INITIALIZER; +pthread_internal_t* g_thread_list = NULL; +pthread_mutex_t g_thread_list_lock = PTHREAD_MUTEX_INITIALIZER; void _pthread_internal_remove_locked(pthread_internal_t* thread) { if (thread->next != NULL) { @@ -43,7 +43,7 @@ void _pthread_internal_remove_locked(pthread_internal_t* thread) { if (thread->prev != NULL) { thread->prev->next = thread->next; } else { - gThreadList = thread->next; + g_thread_list = thread->next; } // The main thread is not heap-allocated. See __libc_init_tls for the declaration, @@ -54,15 +54,15 @@ void _pthread_internal_remove_locked(pthread_internal_t* thread) { } void _pthread_internal_add(pthread_internal_t* thread) { - ScopedPthreadMutexLocker locker(&gThreadListLock); + ScopedPthreadMutexLocker locker(&g_thread_list_lock); // We insert at the head. - thread->next = gThreadList; + thread->next = g_thread_list; thread->prev = NULL; if (thread->next != NULL) { thread->next->prev = thread; } - gThreadList = thread; + g_thread_list = thread; } pthread_internal_t* __get_thread(void) { |