ta/mt: add rend_framePending? for better mt sync from clients

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2015-07-28 23:43:03 +02:00
parent 0b29889b02
commit 057b1075b6
1 changed files with 8 additions and 0 deletions

View File

@ -113,6 +113,14 @@ TA_context* DequeueRender()
return rv;
}
bool rend_framePending() {
mtx_rqueue.Lock();
TA_context* rv = rqueue;
mtx_rqueue.Unlock();
return rv != 0;
}
void FinishRender(TA_context* ctx)
{
verify(rqueue == ctx);