libsaria: Rename IdleTask::run_task()

I think that just calling it run() is better.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-11-24 18:21:30 -05:00 committed by Anna Schumaker
parent 9c72e56261
commit e4d73fee48
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class IdleTask
IdleTask(void (*)()); IdleTask(void (*)());
IdleTask(void (*)(void *), void *); IdleTask(void (*)(void *), void *);
~IdleTask(); ~IdleTask();
void run_task(); void run();
bool should_cancel(void *); bool should_cancel(void *);
}; };
@ -43,7 +43,7 @@ IdleTask::~IdleTask()
{ {
} }
void IdleTask::run_task() void IdleTask::run()
{ {
if (func) if (func)
func(); func();
@ -97,7 +97,7 @@ namespace libsaria
if (size() == 0) if (size() == 0)
return 0; return 0;
idle_queue[0]->run_task(); idle_queue[0]->run();
delete idle_queue[0]; delete idle_queue[0];
idle_queue.pop_front(); idle_queue.pop_front();