From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32492 invoked by alias); 8 Jul 2004 14:58:53 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 32481 invoked from network); 8 Jul 2004 14:58:52 -0000 Received: from unknown (HELO tpssys.com) (209.142.86.226) by sourceware.org with SMTP; 8 Jul 2004 14:58:52 -0000 Received: from [204.62.234.26] (fist.tpssys.COM [204.62.234.26]) by tpssys.com (8.11.0/8.11.0) with ESMTP id i68F0D421665 for ; Thu, 8 Jul 2004 10:00:14 -0500 Message-ID: <40ED6116.6030207@tps.com> Date: Thu, 08 Jul 2004 14:58:00 -0000 From: Jef Gearhart User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) MIME-Version: 1.0 To: pthreads-win32@sources.redhat.com Subject: [Fwd: Re: Unix vs. Windows Posix threads !]] Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004/txt/msg00091.txt.bz2 I am re-forwarding this message to the pthread group, as the previous try bounced due to HTML formatting.... ................................. Lavanya, Are using pthread_mutex_destroy() ? Are you declaring local mutexes on the stack, or globally? Mutexes are generally meant to be of global scope! You need pthread_mutex_destroy(), or appropriate code reorganization. I would not be surprised if you also have a handle leak on some of these other platforms. Jef Lavanya Swetharanyan wrote: > I studied it further and I am getting "semaphore handle" leaks. The > number of semaphore handles keep growing. The handle viewer is not > giving me any other information. > I am using the pthread_mutex_lock() and unlock, > pthread_mutex_init(&mutex,NULL); etc. and these are not giving me a > leak in MAC/Linux. What am I missing here ?. > > > >