Fix QSystemSemaphore handle management issues in Symbian
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Thu, 13 Jan 2011 13:52:17 +0000 (15:52 +0200)
committerJason McDonald <jason.mcdonald@nokia.com>
Fri, 14 Jan 2011 15:06:41 +0000 (01:06 +1000)
commit324d08376ce6126a5675ffe35568920b76f01b5e
tree72edbb507788faca3ecdbe0d03d4973c446475b5
parent2ebc2d6decb86d01672f0a5afb412f7aed53c49a
Fix QSystemSemaphore handle management issues in Symbian

QSystemSemaphore native RSemaphore handle was unnecessarily created
again on each acquire. The creation logic was also susceptible for
random failures when two or more threads tried simultaneously acquire
the semaphore.

Task-number: QTBUG-16615
Reviewed-by: Janne Koskinen
(cherry picked from commit 570e7b38487455d394b5b74a59edc639f3dc416f)
src/corelib/kernel/qsystemsemaphore_symbian.cpp