[xml] Threads support question
- From: shard neoni net
- To: xml gnome org
- Subject: [xml] Threads support question
- Date: Wed, 29 Oct 2003 15:41:26 +0100
Hi,
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?
Regads
Shard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]