delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/28/23:26:42

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: <39AB2D23.38CCF649@zygate.com.tw>
Date: Tue, 29 Aug 2000 11:25:23 +0800
From: Jim Shiu <shiu AT zygate DOT com DOT tw>
Organization: ZyGATE Communications Inc.
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sources DOT redhat DOT com
Subject: Re: pthreads ?
References: <39AAA615 DOT 7B66DA75 AT telesoft DOT com> <20000828135657 DOT A684 AT cygnus DOT com> <39AAA869 DOT A66893DA AT telesoft DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20000828133606 DOT 0336c580 AT mail DOT prefres DOT com> <20000828145148 DOT A1288 AT cygnus DOT com>

Following some early post(s) in this newsgroup or somewhere else,
I once installed pthreads-win32 under cygwin in the following way
    - copy pthread.lib to /usr/local/lib/libpthread.a
      copy pthread.dll to /usr/local/bin
      copy pthread.h to /usr/local/include

However,  after some un-install, re-install and so on, gcc does not
use header files in /usr/local/include if I do not put
-I/usr/local/include in
the makefile. So now I install pthreads-win32 by
    - copy pthread.lib to /usr/local/lib/libpthread.a
      copy pthread.dll to /usr/local/bin
      rename /usr/include/pthread.h to pthread-old.h
      copy pthread.h to /usr/include

I have used pthread_cancel(), pthread_create(),
pthread_mutex_lock(), pthread_mutex_unlock(),
pthread_cond_signal() and pthread_cond_timedwait()
in my programs and they seem to work fine.

Shiu

Chris Faylor wrote:

> On Mon, Aug 28, 2000 at 01:38:11PM -0500, Matt Minnis wrote:
> >Redhat has a link to more software off the sourceware homepage.
> >
> >There is a PThreads project there.
> >http://sources.redhat.com/pthreads-win32/
>
> AFAIK, this project does not work with cygwin, which is why I didn't
> mention it.
>
> If you need POSIX + pthreads, the only alternative, I believe, is to
> use (and augment) cygwin.
>
> cgf
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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