Hi guys,
/ I'm sorry if this was posted before me (I've searched but didn't
find the issue). /
Is there a way to directly find the maximum number of PRLock objects
that are available for creation at a certain moment? AFAIK, the only
way to receive that there are no more mutexes available on the system
is to check the return value of PR_NewLock(void), i.e. NULL when "for
example, the lock cannot be created because of resource constraints".
The reason I am asking this is my attempt to optimize synchronization
of a large arrays of structures - i.e. instead of using one PRLock for
the entire array, to use a certain ammount of PRLock's that are
responsible for parts of the array.
Thanks for your responses in advance,
BR, Anton
_______________________________________________
dev-tech-nspr mailing list
dev-tech-nspr@...
https://lists.mozilla.org/listinfo/dev-tech-nspr