delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/09/16:38:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Lotus-FromDomain: COMPUTRITION
From: Fred_Smith AT computrition DOT com
To: cygwin AT cygwin DOT com
Message-ID: <85256C4D.006FCC37.00@cinote.computrition.com>
Date: Wed, 9 Oct 2002 16:21:50 -0400
Subject: pthreads
Mime-Version: 1.0

ERROR in my original posting:

Below wher eit says "pthread_timed_wait()" it should say
"pthread_cond_timedwait().


---------------------- Forwarded by Fred Smith/Computrition on 10/09/2002
04:19 PM ---------------------------


Fred Smith
10/09/2002 04:18 PM

Sent by:  Fred Smith


To:   cygwin AT cygwin DOT com
cc:
Subject:  pthreads

Gang:

I've got a body of code that is running successfully on Linux. It's mostly
also working fine with Cygwin, but am having a problem in one area:

It starts up several threads (pthread_create), all detached. One of them
blocks on pthread_timed_wait(), the rest do not.

Later on when exiting, it cancels all those threads, and the one that is
blocking on pthread_timed_wait() gets back a return value of 3 (ESRCH) with
errno=0, the rest are fine.

I've verified that the pthread_t value I'm using for the cancel is the same
one we got back from pthread_create.

Can anybody help shed a little illumination on this for me?

Thanks!

Fred



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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