]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commitdiff
Revert "Fix semaphores fallback code"
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 2 Oct 2013 16:16:31 +0000 (17:16 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Wed, 2 Oct 2013 16:16:31 +0000 (17:16 +0100)
This reverts commit 0a7ad69a0f012d5d70142f775f99405500d4d38e.

qemu-thread-posix.c

index e24e2aed8911c445f2ee1911c3ba627086c7b50a..6d95bac536294c871690953ed96da5a92d85cbd5 100644 (file)
@@ -213,7 +213,6 @@ int qemu_sem_timedwait(QemuSemaphore *sem, int ms)
     while (sem->count < 0) {
         rc = pthread_cond_timedwait(&sem->cond, &sem->lock, &ts);
         if (rc == ETIMEDOUT) {
-            ++sem->count;
             break;
         }
         if (rc != 0) {