trace/rbug: Sleep on windows when blocked
authorJakob Bornecrantz <jakob@vmware.com>
Mon, 8 Jun 2009 12:33:55 +0000 (14:33 +0200)
committerJakob Bornecrantz <jakob@vmware.com>
Mon, 8 Jun 2009 13:01:48 +0000 (15:01 +0200)
src/gallium/drivers/trace/tr_context.c

index dd5cca58dd262a22c1cf9b27b3d08ce65501bf6c..b845a649b898f45f76ea7c66b97d5ec54678c490 100644 (file)
@@ -131,7 +131,9 @@ trace_context_draw_block(struct trace_context *tr_ctx, int flag)
       pipe_condvar_wait(tr_ctx->draw_cond, tr_ctx->draw_mutex);
 #else
       pipe_mutex_unlock(tr_ctx->draw_mutex);
-      /* TODO sleep or use conditional */
+#ifdef PIPE_SUBSYSTEM_WINDOWS_USER
+      Sleep(1);
+#endif
       pipe_mutex_lock(tr_ctx->draw_mutex);
 #endif
    }