diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-09-20 17:21:07 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-10-25 14:00:53 +0200 |
commit | 4ec8d3077b799fcdd9fe0f38e432791c8fceb88e (patch) | |
tree | 271aeea89d3c2c4591ec810f95b3c27afc96f4b0 /hw/qxl.c | |
parent | 691f5c7bde07218127e034cca4e2581f66a6ddcf (diff) |
qxl: Drop phread_yield on OOM
This was only a best-effort attempt, by far not guaranteed to have an
effect. Drop it so that also no direct pthread usage remain in the
device model.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/qxl.c')
-rw-r--r-- | hw/qxl.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -18,8 +18,6 @@ * along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <pthread.h> - #include "qemu-common.h" #include "qemu-timer.h" #include "qemu-queue.h" @@ -1215,10 +1213,6 @@ async_common: if (!SPICE_RING_IS_EMPTY(&d->ram->release_ring)) { break; } - pthread_yield(); - if (!SPICE_RING_IS_EMPTY(&d->ram->release_ring)) { - break; - } d->oom_running = 1; qxl_spice_oom(d); d->oom_running = 0; |