Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: 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 Content-type: text/plain; charset=us-ascii 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