ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/timer.cpp
(Generate patch)

Comparing SheepShaver/src/timer.cpp (file contents):
Revision 1.6 by gbeauche, 2005-03-16T00:35:51Z vs.
Revision 1.7 by gbeauche, 2005-07-01T23:15:11Z

# Line 532 | Line 532 | static void *timer_func(void *arg)
532  
533                  tm_time_t system_time;
534                  timer_current_time(system_time);
535                pthread_mutex_lock(&wakeup_time_lock);
535                  if (timer_cmp_time(wakeup_time, system_time) < 0) {
536  
537                          // Timer expired, trigger interrupt
538 +                        pthread_mutex_lock(&wakeup_time_lock);
539                          wakeup_time = wakeup_time_max;
540 +                        pthread_mutex_unlock(&wakeup_time_lock);
541                          SetInterruptFlag(INTFLAG_TIMER);
542                          TriggerInterrupt();
543                  }
543                pthread_mutex_unlock(&wakeup_time_lock);
544          }
545          return NULL;
546   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines