Zebediah Figura (@zfigura) commented about dlls/wined3d/wined3d_private.h:
resource->access_time = cs->queue[WINED3D_CS_QUEUE_DEFAULT].head;
}
+static inline void wined3d_pause(unsigned int *spin_count) +{
- static const LARGE_INTEGER timeout = {.QuadPart = WINED3D_CS_WAIT_TIMEOUT * -10};
- if (++*spin_count >= WINED3D_CS_SPIN_COUNT)
Using WINED3D_CS_SPIN_COUNT here is a bit weird, since it's a wait on the other thread and I don't immediately see why we'd want to spin a comparable number of times. Defining a new symbolic constant with the same value may honestly be better in terms of clarity?