diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-05-25 05:21:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-05-25 05:21:07 +0000 |
commit | 0a54ab53f2bbbd380b019dc665047fb3acf37e3a (patch) | |
tree | cb9ed7fadb5d0b66c121ac42ab2c1b62d67a6b2e /nptl/allocatestack.c | |
parent | ddfd0535776c47ec01231ac91fabe8b2e128cfa3 (diff) | |
download | glibc-0a54ab53f2bbbd380b019dc665047fb3acf37e3a.tar.gz glibc-0a54ab53f2bbbd380b019dc665047fb3acf37e3a.tar.xz glibc-0a54ab53f2bbbd380b019dc665047fb3acf37e3a.zip |
* sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
(THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT): Define. (THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG, THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define. * sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use PTR_DEMANGLE. (THREAD_GSCOPE_GET_FLAG): Define. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define. * allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG instead of ->header.gscope_flag directly.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 5dac000d6e..9c9372b2a8 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -1023,10 +1023,10 @@ __wait_lookup_done (void) list_for_each (runp, &stack_used) { struct pthread *t = list_entry (runp, struct pthread, list); - if (t == self || t->header.gscope_flag == THREAD_GSCOPE_FLAG_UNUSED) + if (t == self || THREAD_GSCOPE_GET_FLAG (t) == THREAD_GSCOPE_FLAG_UNUSED) continue; - int *const gscope_flagp = &t->header.gscope_flag; + int *const gscope_flagp = &THREAD_GSCOPE_GET_FLAG (t); /* We have to wait until this thread is done with the global scope. First tell the thread that we are waiting and @@ -1045,10 +1045,10 @@ __wait_lookup_done (void) list_for_each (runp, &__stack_user) { struct pthread *t = list_entry (runp, struct pthread, list); - if (t == self || t->header.gscope_flag == THREAD_GSCOPE_FLAG_UNUSED) + if (t == self || THREAD_GSCOPE_GET_FLAG (t) == THREAD_GSCOPE_FLAG_UNUSED) continue; - int *const gscope_flagp = &t->header.gscope_flag; + int *const gscope_flagp = &THREAD_GSCOPE_GET_FLAG (t); /* We have to wait until this thread is done with the global scope. First tell the thread that we are waiting and |