24 #ifndef _GEMALUA_TASK_H_ 25 #define _GEMALUA_TASK_H_ 63 static int iteratorClosure (lua_State* L);
64 static int iteratorFunction(lua_State* L);
83 static int iteratorClosure(lua_State* L);
84 static int iteratorFunction(lua_State* L);
100 bool loggerIsUpvalue,
int (*iteratorClosure)(lua_State*),
105 const char* fname,
int* ntasks,
int* nworkers, T* strategy,
const QVariantList & _extraPars
The set of extra parameters, common to all tasks.
Definition: gmLuaTask.h:87
A Thread task that is responsible for calling a Lua function that gets as parameters a single paramet...
Definition: gmLuaTask.h:36
const GmLogCategory & _logger
A logger for error messages.
Definition: gmLuaTask.h:68
const QVariantList & _extraPars
The set of extra parameters, common to all tasks.
Definition: gmLuaTask.h:67
bool pushParameter(LuaEnv *env, const QVariant &v)
Pushes v on the stack.
Definition: gmLuaTask.cpp:286
void parseExecOptions(LuaEnv *env, int stackPos, T(*str2Strat)(QString), T defStrategy, const char *fname, int *ntasks, int *nworkers, T *strategy, QVector< int > &taskAffinity)
Parses the contents of the options Lua table at stackPos, using the function str2Strat() function to ...
Definition: gmLuaTask.cpp:485
A task function object responsible for calling a Lua function that gets as parameters an iterator for...
Definition: gmLuaTask.h:75
Declaration of the function used to prepare an environment with the core Lua functions.
const QString & _fname
The name of the function to be called.
Definition: gmLuaTask.h:86
const GmLogCategory & _logger
A logger for error messages.
Definition: gmLuaTask.h:48
const QVariantList & _extraPars
The set of extra parameters, common to all tasks.
Definition: gmLuaTask.h:47
virtual GmThreadTaskResult run(const GmThread *thread)=0
bool setInTable(LuaTable &t, const QVariant &index, const QVariant &v)
Aux function used by pushParameter() to set a field in a table (integer or string) to the value v,...
Definition: gmLuaTask.cpp:346
const GmLogCategory & _logger
A logger for error messages.
Definition: gmLuaTask.h:88
const QString & _fname
The name of the function to be called.
Definition: gmLuaTask.h:45
const QString & _fname
The name of the function to be called.
Definition: gmLuaTask.h:66
A task function object responsible for calling a Lua function that gets as parameters an iterator for...
Definition: gmLuaTask.h:55
GmThreadTaskResult callLuaTaskFunction(void *dataSet, const GmThread *thread, const QString &luaName, const QVariantList &extraPars, const GmLogCategory &logger, bool loggerIsUpvalue, int(*iteratorClosure)(lua_State *), const char *fname)
Aux function used by the GmLuaXxxTask classes to call a Lua function sending as parameters an iterato...
Definition: gmLuaTask.cpp:410
const QVariant & _taskPars
The set of task parameters.
Definition: gmLuaTask.h:46
Aux functions used by several of the task classes.
Definition: gmLuaTask.h:93