Fix QSystemSemaphore handle management issues in Symbian
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Thu, 13 Jan 2011 13:52:17 +0000 (15:52 +0200)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>
Thu, 13 Jan 2011 14:16:17 +0000 (16:16 +0200)
commit570e7b38487455d394b5b74a59edc639f3dc416f
tree5fff9159a5de8521ddcecc84bf5f1875714e44e9
parent124ad6e903767fae510e0c2f0aba4029564a95c8
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
src/corelib/kernel/qsystemsemaphore_symbian.cpp