Commit c4aff2b7 authored by Alon Levy's avatar Alon Levy

xspice/qxl_ring: yield when ring is full

parent ee0e638e
......@@ -75,7 +75,11 @@ qxl_ring_push (struct qxl_ring *ring,
while (header->prod - header->cons == header->num_items)
{
header->notify_on_cons = header->cons + 1;
#ifdef XSPICE
/* in gtkperf, circles, this is a major bottleneck. Can't be that good in a vm either
* Adding the yield reduces cpu usage, but doesn't improve throughput. */
pthread_yield();
#endif
mem_barrier();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment