This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
[Fwd: Re: Unix vs. Windows Posix threads !]]
- From: Jef Gearhart <jef at tpssys dot com>
- To: pthreads-win32 at sources dot redhat dot com
- Date: Thu, 08 Jul 2004 09:58:30 -0500
- Subject: [Fwd: Re: Unix vs. Windows Posix threads !]]
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 ?.