[Fwd: Re: Unix vs. Windows Posix threads !]]

Jef Gearhart jef@tpssys.com
Thu Jul 8 14:58:00 GMT 2004


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 ?.
>
>
>
>



More information about the Pthreads-win32 mailing list