src: storage refactoring
* used the getFirst/getAll template methods throughout the SqliteStorage. * renamed LambdaTask to TaskLambda to match our naming convention.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#include "utility/scheduling/TaskLambda.h"
|
||||
|
||||
TaskLambda::TaskLambda(std::function<void()> func)
|
||||
: m_func(func)
|
||||
{
|
||||
}
|
||||
|
||||
TaskLambda::~TaskLambda()
|
||||
{
|
||||
}
|
||||
|
||||
void TaskLambda::enter()
|
||||
{
|
||||
}
|
||||
|
||||
Task::TaskState TaskLambda::update()
|
||||
{
|
||||
m_func();
|
||||
return Task::STATE_FINISHED;
|
||||
}
|
||||
|
||||
void TaskLambda::exit()
|
||||
{
|
||||
}
|
||||
|
||||
void TaskLambda::interrupt()
|
||||
{
|
||||
}
|
||||
|
||||
void TaskLambda::revert()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user