bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] New modules nproc, pthread.


From: Pádraig Brady
Subject: Re: [PATCH] New modules nproc, pthread.
Date: Tue, 13 Jul 2010 10:07:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 25/03/09 20:04, Paul Eggert wrote:
> This patch is to add multithread support for coreutils.  The code was
> written by Glen Lenker, who has filed papers with the GNU project.
> The pthread emulation (for platforms that lack pthreads) is very minimal,
> just enough for coreutils to get by.

The coreutils build just failed on our integration server
as it doesn't have <pthread.h>

checking for pthread.h... no
building pthread.h
  <command used to generate rather than GEN ...>
sort.c:236:3: error: expected specifier-qualifier-list before 
'pthread_spinlock_t'
sort.c:243:3: error: expected specifier-qualifier-list before 'pthread_mutex_t'
sort.c:3144:3: warning: implicit declaration of function 'pthread_spin_lock'
...

So currently the coreutils code would need more ifdefs
which I would prefer not to do, or we could expand the
emulation in pthread.h.in

What do you think?

Pádraig.



reply via email to

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