This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: test/demo patch for pthread manager


>>>>> Pavel Krauz writes:

 > Hello
 > This is a test/demo patch to glibc-linuxthreads-2.1.3. It requires
 > kernel 2.3.99
 > - particularly for (CLONE_PARENT and (2) prctl).
I'd like to see support for older kernels, also - this could mean
using the old interface.  But let's first others comment with good
knowledge of linuxthreads on your patch.

When was CLONE_PARENT introdruced?  Or is it only usable with
2.3.99pre1?

 > @@ -130,11 +136,12 @@
 >    if (! th->p_terminated) {
 >      /* Register extrication interface */
 >      __pthread_set_own_extricate_if(self, &extr); 
 > -    if (!(THREAD_GETMEM(self, p_canceled)
 > +    if ((THREAD_GETMEM(self, p_canceled)
 >  	&& THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE))
 > -      th->p_joining = self;
 > -    else
 >        already_canceled = 1;
 > +    else
 > +      th->p_joining = self;
 > +	  
 >      __pthread_unlock(&handle->h_lock);
Remove this part ;-)

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]