delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/23/07:39:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Subject: Problem with pthread
To: cygwin AT cygwin DOT com, dj AT cygnus DOT com, sourcemaster AT sources DOT redhat DOT com
X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000
Message-ID: <OFA3A03F25.8D892FE9-ON042569A0.004AB35F@lothar.com.py>
From: wilfrido DOT inchaustti AT lothar DOT com DOT py
Date: Thu, 23 Nov 2000 09:38:19 -0400
X-MIMETrack: Serialize by Router on lthnotes/Lothar(Release 5.0.4 |June 8, 2000) at 11/23/2000
09:37:37 AM
MIME-Version: 1.0

I have problem when I try to work with pthread.h
I read the pthread.h library and pthread.c. I saw that the threads once
used
they are not liberated of the list "threadlist" used.
I saw that the function pthread_create() call to
MTinterface->CreateThread(), and this last one in turn to FindNextUnused().

OK, the problem is that as the thread number that I want to create it is
not
finite, and as a thread of the list "threadlist" is never liberated, then
when the quantity of thread created arrives to the maximum number of
threads
allowed it leaves the following error:

      0 [main] ssEricsson 1624 MTinterface::CreateThread: thread creation
failed
    231 [main] ssEricsson 1624 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
   2681 [main] ssEricsson 1624 stackdump: Dumping stack trace to
ssEricsson.exe.stackdump

I have this problem only under WindowsNT, but no under Unix or Linux.
It will be that the problem is not the bad definition of the function
pthread_attr_destroy() that the only thing that makes is a "return 0;" ?. I

tried with the function pthread_kill() too, but I don't resolve my problem.

I believe this function should liberate the thread of the list "threadlist"

so when calling to the function FindNextUnused(), it can return as
available.

Thanks.

=====================================
Willy Inchaustti
-------------------------------------
winchaus AT hotmail DOT com
wilfrido DOT inchaustti AT lothar DOT com DOT py
-------------------------------------


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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