This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]