mirror of
https://github.com/holub/mame
synced 2025-07-02 08:39:21 +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>
|
template<typename BaseType, class ObjectType, int MaxParams, u8 Flags>
|
||||||
void poly_manager<BaseType, ObjectType, MaxParams, Flags>::wait(const char *debug_reason)
|
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
|
#if TRACK_POLY_WAITS
|
||||||
int items = osd_work_queue_items(m_queue);
|
int items = osd_work_queue_items(m_queue);
|
||||||
osd_ticks_t time = get_profile_ticks();
|
osd_ticks_t time = get_profile_ticks();
|
||||||
|
Loading…
Reference in New Issue
Block a user