bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are these bugs of pthread ?


From: Andreas Jaeger
Subject: Re: Are these bugs of pthread ?
Date: 24 Jan 2001 08:32:24 +0100
User-agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Channel Islands)

$BF`NI86(B $B?-:H(B <address@hidden> writes:

> Dear developers...
> 
> The header file "pthread.h" which is contained in 
> ftp://alpha.gnu.org/gnu/glibc/glibc-linuxthreads-2.1.2.tar.bz2,
> has some syntax errors. For example, pthread_cleanup_push()
> in pthread.h has lines below: 
> 
> #define pthread_cealnup_push(routine,arg)  \
>   { struct _pthread_cleanup_buffer _buffer; \
>     _pthread_cleanup_push (&_buffer, (routine), (arg));

Did you read the comment before it?

/* Install a cleanup handler: ROUTINE will be called with arguments ARG
   when the thread is cancelled or calls pthread_exit.  ROUTINE will also
   be called with arguments ARG when the matching pthread_cleanup_pop
   is executed with non-zero EXECUTE argument.
   pthread_cleanup_push and pthread_cleanup_pop are macros and must always
   be used in matching pairs at the same nesting level of braces. */

#define pthread_cleanup_push(routine,arg) \


There's no bug in glibc,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]