Wraps a nkTasks::Task and offers functions for use in scripting. More...
Wraps a nkTasks::Task and offers functions for use in scripting.
Currently focused on Lua, in which threads are not allowed. As such, memory management within tasks has to be done cautiously. Be sure to manage correctly user data ownership when passing them around. Lua objects need to be serialized before being communicated. Typically :
If ownership of user data has to be passed around, use serializeForwardOwnership().
|
static |
Updates a given environment and set it up to use all functions wrapped by this wrapper.
env | The environment to set up. |
targetLogManager | The target log manager, should logging happen within the populated methods. |
|
static |
Wrapper function for the constructor of the user type.
env | The calling environment. |
targetLogManager | The target log manager, should logging happen within the populated methods. |
stack | The parameter stack. |
|
static |
Wrapper function for the destructor of the user type.
toDestroy | The data that has to be freed. |
|
static |
Wrapper function for the nkTasks::Task::getWorkResult(), exposed as an attribute getter.
data | The data from which the attribute will be retrieved. |
|
static |
Wrapper function for the nkAstraeus::lua::nkTasksWrap::LuaTask::getInputBinaryData(), exposed as an attribute getter.
data | The data from which the attribute will be retrieved. |
|
static |
Wrapper function for the nkAstraeus::lua::nkTasksWrap::LuaTask::getOutputBinaryData(), exposed as an attribute getter.
data | The data from which the attribute will be retrieved. |
|
static |
Wrapper function for nkAstraeus::lua::nkTasksWrap::LuaTask::setWorkFuncReference(), exposed as an attribute setter.
stack | The parameter stack. |
|
static |
Wrapper function for nkAstraeus::lua::nkTasksWrap::LuaTask::setInitScript(), exposed as an attribute setter.
stack | The parameter stack. |
|
static |
Wrapper function for nkAstraeus::lua::nkTasksWrap::LuaTask::setInputBinaryData(), exposed as an attribute setter.
stack | The parameter stack. |
|
static |
Wrapper function for nkAstraeus::lua::nkTasksWrap::LuaTask::setOutputBinaryData(), exposed as an attribute setter.
stack | The parameter stack. |
|
static |
Wrapper function for nkAstraeus::lua::nkTasksWrap::LuaTask::addInputUserData().
stack | The parameter stack. |
|
static |
Wrapper function for nkAstraeus::lua::nkTasksWrap::LuaTask::addOutputUserData().
stack | The parameter stack. |
|
static |
Wrapper function for nkAstraeus::lua::nkTasksWrap::LuaTask::getInputUserData().
stack | The parameter stack. |
|
static |
Wrapper function for nkAstraeus::lua::nkTasksWrap::LuaTask::getOutputUserData().
stack | The parameter stack. |