delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Artem Alimarine <alimarine AT zonnet DOT nl> |
Subject: | Re: phread_join problem |
Date: | Thu, 16 Mar 2006 22:02:47 +0100 |
Lines: | 26 |
Message-ID: | <dvcjpq$3ee$1@sea.gmane.org> |
References: | <20060316064537 DOT fb30e530d17747c2b054d625b8945d88 DOT f9ec0c655e DOT wbe AT email DOT email DOT secureserver DOT net> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
In-Reply-To: | <20060316064537.fb30e530d17747c2b054d625b8945d88.f9ec0c655e.wbe@email.email.secureserver.net> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
Jerry D. Hedden wrote: > You can't join to a cancelled thread. Cannot you? From reading the posix thread documentation I have an impression that you can. See for instance http://www.opengroup.org/onlinepubs/009695399/functions/pthread_join.html It says: > The pthread_join() or pthread_detach() function should eventually be called for every thread that is created with the detachstate attribute set to PTHREAD_CREATE_JOINABLE so that storage associated with the thread may be reclaimed. Moreover, there is also a thread return status PTHREAD_CANCELED that is returned by pthread_join when the thread exits due to pthread_cancel request. See the paragraph "Thread Cancellation Cleanup Handlers" at http://www.opengroup.org/onlinepubs/000095399/functions/xsh_chap02_09.html Artem Alimarine. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |