* [Fwd: Re: Unix vs. Windows Posix threads !]]
@ 2004-07-08 14:58 Jef Gearhart
2004-07-08 16:26 ` Lavanya Swetharanyan
0 siblings, 1 reply; 2+ messages in thread
From: Jef Gearhart @ 2004-07-08 14:58 UTC (permalink / raw)
To: pthreads-win32
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 ?.
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Fwd: Re: Unix vs. Windows Posix threads !]]
2004-07-08 14:58 [Fwd: Re: Unix vs. Windows Posix threads !]] Jef Gearhart
@ 2004-07-08 16:26 ` Lavanya Swetharanyan
0 siblings, 0 replies; 2+ messages in thread
From: Lavanya Swetharanyan @ 2004-07-08 16:26 UTC (permalink / raw)
To: Jef Gearhart; +Cc: pthreads-win32
Thanks for all your help. It was as Jef suggested, due to not using
the pthread_mutex_destory() function correctly. Once I had them at the
right places, it is working fine.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-08 16:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-08 14:58 [Fwd: Re: Unix vs. Windows Posix threads !]] Jef Gearhart
2004-07-08 16:26 ` Lavanya Swetharanyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).