mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-22 15:29:58 +00:00
timemanager: Remove unnecessary parameter.
This commit is contained in:
parent
014aa90462
commit
833f74dce6
@ -110,9 +110,10 @@ void TimerManager::cancel_timer(uint32_t id)
|
||||
}
|
||||
}
|
||||
|
||||
uint64_t TimerManager::process_timers(uint64_t time_now)
|
||||
uint64_t TimerManager::process_timers()
|
||||
{
|
||||
TimerInfo* cur_timer;
|
||||
uint64_t time_now = get_time_now();
|
||||
|
||||
if (this->timer_queue.empty()) {
|
||||
return 0ULL;
|
||||
|
@ -106,7 +106,7 @@ public:
|
||||
uint32_t add_cyclic_timer(uint64_t interval, uint64_t delay, timer_cb cb);
|
||||
void cancel_timer(uint32_t id);
|
||||
|
||||
uint64_t process_timers(uint64_t time_now);
|
||||
uint64_t process_timers();
|
||||
|
||||
private:
|
||||
static TimerManager* timer_manager;
|
||||
|
@ -302,7 +302,7 @@ uint64_t get_virt_time_ns()
|
||||
|
||||
uint64_t process_events()
|
||||
{
|
||||
uint64_t slice_ns = TimerManager::get_instance()->process_timers(get_virt_time_ns());
|
||||
uint64_t slice_ns = TimerManager::get_instance()->process_timers();
|
||||
if (slice_ns == 0) {
|
||||
// execute 10.000 cycles
|
||||
// if there are no pending timers
|
||||
|
Loading…
Reference in New Issue
Block a user