Previous 199869 Revisions Next

r32227 Saturday 20th September, 2014 at 08:45:40 UTC by Oliver Stöneberg
more changes to make sdlwork.c and winwork.c match (nw)
[src/osd/windows]winwork.c

trunk/src/osd/windows/winwork.c
r32226r32227
280280      worker_thread_process(queue, thread);
281281
282282      // if we're a high frequency queue, spin until done
283      if (queue->flags & WORK_QUEUE_FLAG_HIGH_FREQ)
283      if (queue->flags & WORK_QUEUE_FLAG_HIGH_FREQ && queue->items != 0)
284284      {
285285         osd_ticks_t stopspin = osd_ticks() + timeout;
286286
r32226r32227
315315void osd_work_queue_free(osd_work_queue *queue)
316316{
317317   // if we have threads, clean them up
318   if (queue->threads > 0 && queue->thread != NULL)
318   if (queue->thread != NULL)
319319   {
320320      int threadnum;
321321
r32226r32227
624624         worker_thread_process(queue, thread);
625625
626626         // if we're a high frequency queue, spin for a while before giving up
627         if (queue->flags & WORK_QUEUE_FLAG_HIGH_FREQ)
627         if (queue->flags & WORK_QUEUE_FLAG_HIGH_FREQ && queue->list == NULL)
628628         {
629629            // spin for a while looking for more work
630630            begin_timing(thread->spintime);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team