delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/16/08:46:35

X-Spam-Check-By: sourceware.org
Date: Thu, 16 Mar 2006 06:45:37 -0700
From: "Jerry D. Hedden" <jerry AT hedden DOT us>
Subject: RE: phread_join problem
To: cygwin AT cygwin DOT com
Message-ID: <20060316064537.fb30e530d17747c2b054d625b8945d88.f9ec0c655e.wbe@email.email.secureserver.net>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

>     res = pthread_cancel(the_handle);
>     assert(res == 0);
>     cout << "cancelled, joining\n";
>     res = pthread_join(the_handle, NULL);

You can't join to a cancelled thread.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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