[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pthread headers
From: |
Neal H. Walfield |
Subject: |
Re: pthread headers |
Date: |
Tue, 18 Jan 2005 10:33:32 +0000 |
User-agent: |
Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI) |
> > diff -ur hurd.old/libpthread/sysdeps/l4/hurd/pt-sysdep.h
> > hurd/libpthread/sysdeps/l4/hurd/pt-sysdep.h
> > --- hurd.old/libpthread/sysdeps/l4/hurd/pt-sysdep.h 2002-10-11
> > 01:05:05.000000000 +0200
> > +++ hurd/libpthread/sysdeps/l4/hurd/pt-sysdep.h 2003-03-09
> > 14:48:11.000000000 +0100
> > @@ -34,17 +34,25 @@
> > L4_ThreadId_t threadid; \
> > L4_Word_t my_errno;
> >
> > -extern inline struct __pthread *
> > +#ifdef __USE_EXTERN_INLINES
> > +
> > +# ifndef _EXTERN_INLINE
> > +# define _EXTERN_INLINE extern __inline
> > +# endif
> > +
> > +_EXTERN_INLINE struct __pthread *
> > _pthread_self (void)
> > {
> > return (struct __pthread *) L4_MyUserDefinedHandle ();
> > }
> >
> > -extern inline void
> > +_EXTERN_INLINE void
> > __pthread_stack_dealloc (void *stackaddr, size_t stacksize)
> > {
> > /* XXX: can only implement this once we have a working memory manager.
> > */
> > return;
> > }
> >
> > +#endif /* __USE_EXTERN_INLINES */
> > +
> > #endif /* pt-sysdep.h */
>
> This is not a public header file so we don't need to worry about
> compiling with -ansi. However, there is a bug here: this needs to
> have the always inline attribute added.
I have fixed this bug and the similar one in
sysdeps/l4/hurd/pt-sysdep.h.
Thanks,
Neal
- Re: pthread headers, (continued)
Re: pthread headers, Marcus Brinkmann, 2005/01/12
Re: pthread headers, pietro, 2005/01/14
Re: pthread headers, Neal H. Walfield, 2005/01/18
Re: pthread headers,
Neal H. Walfield <=
Re: pthread headers: applied, Neal H. Walfield, 2005/01/18