Mesa (master): trace/rbug: Sleep on windows when blocked
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Mon Jun 8 13:02:51 UTC 2009
Module: Mesa
Branch: master
Commit: 8d2324d355e243b350a03b6d1a9b47f8986e496b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d2324d355e243b350a03b6d1a9b47f8986e496b
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Mon Jun 8 14:33:55 2009 +0200
trace/rbug: Sleep on windows when blocked
---
src/gallium/drivers/trace/tr_context.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index dd5cca5..b845a64 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -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
}
More information about the mesa-commit
mailing list