[xml] Threads support question


I've made xmlMutex based only on semaphore. That means there is no 
"prevention" from calling xmlMutex->Unlock() multiple times (ie. more than 
it was locked). Because of such thing, smaphore will have more than one 
"free slot", and more than one thread, or the same thread few times, will 
be able to lock it.
Now question: Should i add counter also there, and prevent from unlocking 
too many times, or leave it to application developers?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]