delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/21/22:57:54

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-Originating-IP: [203.29.131.3]
X-Originating-Email: [arashp AT hotmail DOT com]
From: "Arash Partow" <arashp AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Cc: rpj AT callisto DOT canberra DOT edu DOT au
Subject: Re: Serious problem with win32 pthreads crashing and c++ class
Date: Wed, 22 Oct 2003 02:57:42 +0000
Mime-Version: 1.0
Message-ID: <BAY9-F29GqjZk8Mh3lH00015296@hotmail.com>
X-OriginalArrivalTime: 22 Oct 2003 02:57:42.0723 (UTC) FILETIME=[43182930:01C39848]

Hi Ross,
A slight correction:

I replaced:

pthread_create(&threadID,NULL,&(Thread::threadFunction),this);
pthread_detach(threadID);

With:

pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
pthread_create(&threadID,&attr,&(Thread::threadFunction),this);






Arash Partow



__________________________________________________
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.net

_________________________________________________________________
E-mail just got a whole lot better. New ninemsn Premium. Click here  
http://ninemsn.com.au/premium/landing.asp


--
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