mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
poly: Early out of waits if no outstanding work.
This commit is contained in:
parent
b8e8bc59d4
commit
dda6dde3df
@ -622,6 +622,10 @@ void *poly_manager<BaseType, ObjectType, MaxParams, Flags>::work_item_callback(v
|
||||
template<typename BaseType, class ObjectType, int MaxParams, u8 Flags>
|
||||
void poly_manager<BaseType, ObjectType, MaxParams, Flags>::wait(const char *debug_reason)
|
||||
{
|
||||
// early out if no units outstanding
|
||||
if (m_unit.count() == 0)
|
||||
return;
|
||||
|
||||
#if TRACK_POLY_WAITS
|
||||
int items = osd_work_queue_items(m_queue);
|
||||
osd_ticks_t time = get_profile_ticks();
|
||||
|
Loading…
Reference in New Issue
Block a user