From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16041 invoked by alias); 12 Nov 2003 14:54:48 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 16034 invoked from network); 12 Nov 2003 14:54:47 -0000 Received: from unknown (HELO mail.broadpark.no) (217.13.4.2) by sources.redhat.com with SMTP; 12 Nov 2003 14:54:47 -0000 Received: from famine (217-13-20-38.dd.nextgentel.com [217.13.20.38]) by mail.broadpark.no (Postfix) with ESMTP id 5EE22786B7 for ; Wed, 12 Nov 2003 15:54:46 +0100 (MET) From: =?ISO-8859-1?Q?=D8yvind?= Harboe To: ecos-discuss@sources.redhat.com Content-Type: text/plain; charset=UTF-8 Organization: Zylin AS Message-Id: <1068648885.869.3.camel@famine> Mime-Version: 1.0 Date: Wed, 12 Nov 2003 14:54:00 -0000 Content-Transfer-Encoding: 8bit Subject: [ECOS] How can I wait for a thread to complete X-SW-Source: 2003-11/txt/msg00184.txt.bz2 What is the correct way for my main thread to wait for the completion of a worker thread to complete, before calling cyg_thread_delete()? The worker thread has various cleanup it needs to do before exiting, after which it simply returns from the thread entry function. Øyvind -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss