From: Jakob Bornecrantz Date: Mon, 8 Jun 2009 12:33:55 +0000 (+0200) Subject: trace/rbug: Sleep on windows when blocked X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d2324d355e243b350a03b6d1a9b47f8986e496b;p=mesa.git trace/rbug: Sleep on windows when blocked --- diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index dd5cca58dd2..b845a649b89 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 }