delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/23/17:01:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A6DFC0F.9080809@home.com>
Date: Tue, 23 Jan 2001 16:47:59 -0500
From: Dave Brolley <gronbog AT home DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Win95; en-US; m18) Gecko/20001108 Netscape6/6.0
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sources DOT redhat DOT com
CC: Jeff Johnston <jjohnstn AT redhat DOT com>
Subject: Re: pthreads on Cygwin

Looking at it a little more closely, it looks like pthread.h was written for Cygwin,
and unconditionally defines all the pthread related types and functions, but is now
depending on sys/features.h to set the _POSIX_* macros.

sys/types.h also defines defferent versions of these same types but only for
__rtems__and sys/features.h does define the _POSIX_* macros, but also only for
__rtems__.

Dave


-----------------------------------------

On Mon, Jan 22, 2001 at 06:13:46PM -0500, Dave Brolley wrote:
>Hi,
>
>According to the online documentation, basic pthread support is 
>available on Cygwin: 
>http://sources.redhat.com/cygwin/cygwin-api/std-posix.html#AEN85
>
>I've found and #included <pthread.h> in /usr/include/pthread.h, however,
><sys/features.h>, found in /usr/include/sys/features.h, only turns on 
>_POSIX_THREADS if
>a macro named __rtems__ is defined. Similarly for the thread support in 
><sys/types.h>.
>
>Is this a bug in the headers or is thread support really not there for 
>vanilla Cygwin? I'm using version 1.1.7 on Windows 95. (Actually, it's a 
>snapshot from Jan 10 -- I as trying to avoid the "cygwin hangs after 
>'sed' in 'libtool' during builds problem). I was told by an insider that 
><pthread.h> and <sys/features.h> were only recently added.

From the ChangeLog, pthread.h has been around for more than a year.
sys/features.h was introduced by Joel Sherrill on 2000-12-11, apparently
to handle rtems.  Apparently he didn't get the cygwin part right.

cgf


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019