[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no pthread_spinlock_t on Mac OS 10.6.4
From: |
Bruno Haible |
Subject: |
Re: no pthread_spinlock_t on Mac OS 10.6.4 |
Date: |
Tue, 21 Sep 2010 19:40:43 +0200 |
User-agent: |
KMail/1.9.9 |
Paul Eggert wrote:
> the problem is that coreutils does not need and does not want
> that multithreaded access, and yet it has to build the multithreaded
> support anyway. ...
> It'd be better if applications could say "I don't need gnulib to be
> multithread-safe, and please don't bother with thread-safety"
You can do so by inserting
gl_use_threads_default=no
in your configure.ac, before the invocations of gl_INIT_EARLY and gl_INIT.
Users who install coreutils can do so by passing the option --disable-threads.
But beware: since some coreutils programs _are_ multithreaded (namely,
'sort'), this option can introduce bugs, if you don't control very carefully
which API you invoke while the concurrent threads are running.
Bruno
- no pthread_spinlock_t on Mac OS 10.6.4, Gary V. Vaughan, 2010/09/19
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/20
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Gary V. Vaughan, 2010/09/20
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/20
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Gary V. Vaughan, 2010/09/20
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/21
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Bruno Haible, 2010/09/21
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/21
- Re: no pthread_spinlock_t on Mac OS 10.6.4,
Bruno Haible <=
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/21
- Re: threadlib vs. pthread modules, Bruno Haible, 2010/09/22
- Re: threadlib vs. pthread modules, Paul Eggert, 2010/09/22
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/21
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Gary V. Vaughan, 2010/09/22
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/22
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Gary V. Vaughan, 2010/09/22
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/22
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Gary V. Vaughan, 2010/09/22
- Re: no pthread_spinlock_t on Mac OS 10.6.4, Paul Eggert, 2010/09/22