mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
trace/rbug: Sleep on windows when blocked
This commit is contained in:
parent
8064a517b2
commit
8d2324d355
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue