This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: pthread_kill prototype


Robert Collins writes:

 Norman Vine [mailto:nhv@cape.com] wrote:
>> >>  
>> >
>> >Well someone may have done
>> >#ifdef __CYGWIN__
>> >  pthread_kill(&var,sig)
>> >#else
>> > pthread_kill(var,sig)
>> >#endif
>> 
>> actually this is only a problem when
>> #if defined(_POSIX_THREADS) 
>> 
>> which I do not believe is defined anywhere in Cygwin
>> so may never have beem picked up before
>> 
>> I have worked around this before with some nasty hacks
>> but since Robert was redoing the package anyway I thought 
>> it was an opportune time to bring this up.
>
>Are you up to rebuilding those pacakges? I will be breaking the ABI by
>fixing this - and it will be fixed this week.
>_POSIX_THREADS is referred to by
>http://www.opengroup.org/onlinepubs/007908799/xsh/threads.html as being
>present on XSI systems. Now as I don't know what an XSI system is, I
>wonder why _POSIX_THREADS showed up for you?

Python uses _POSIX_THREADS to distinguish pthreads from
other possible thread implementations

>I will be defining some of those symbols as I go along, but until I get
>the time to find a full blown pthreads test suite that'll run under
>cygwin... (Norman if you've got some interest.. hint hint)

It doesn't have a full blown test suite but GNU PTH has a fully
POXIX compilent pthread package that compiles and seems to
run just fine with Cygwin

Cheers

Norman Vine

winmail.dat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]