From 0a54ab53f2bbbd380b019dc665047fb3acf37e3a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 25 May 2007 05:21:07 +0000 Subject: * 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. --- nptl/allocatestack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nptl/allocatestack.c') diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 5dac000..9c9372b 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 -- cgit v1.1