dotgnu-pnet
[Top][All Lists]
Advanced

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

Re: [Pnet-developers] [bugs #8074] pnet does not build with threads supp


From: Rhys Weatherley
Subject: Re: [Pnet-developers] [bugs #8074] pnet does not build with threads support against a glibc with nptl
Date: Wed, 10 Mar 2004 07:14:52 +1000
User-agent: KMail/1.4.3

On Wednesday 10 March 2004 03:37 am, Rainer Groesslinger wrote:
> There are currently two work arounds for this problem:
> 1. configure with --enable-threads=none
> or
> 2. in support/pt_defs.h remove those three lines:
> (it will compile and threads seem to work then)
> -----
> #ifdef PTHREAD_RWLOCK_INITIALIZER
>        #define IL_HAVE_RWLOCKS
> #endif
> -----

Neither of these are a valid solution to the problem.  Those 3 lines detect 
the presence of read-write locks, which then don't work.  I would consider 
this to be a bug in your pthread.h file, not pnet - it should not be defining 
PTHREAD_RWLOCK_INITIALIZER if it doesn't have pthread_rwlock_t!

But if you could suggest a more robust way to detect the presense of 
read-write locks for your system, I'm all ears.

Cheers,

Rhys.



reply via email to

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