#include <s_async.h>
|
| AsyncWorkerThread (AsyncEngine *jobDispatcher, const std::string &name) |
|
lua_State * | getStack () |
|
void | realityCheck () |
|
void | scriptError (int result, const char *fxn) |
|
void | stackDump (std::ostream &o) |
|
void | setGameDef (IGameDef *gamedef) |
|
Environment * | getEnv () |
|
void | setEnv (Environment *env) |
|
EmergeThread * | getEmergeThread () |
|
void | setEmergeThread (EmergeThread *emerge) |
|
void | objectrefGetOrCreate (lua_State *L, ServerActiveObject *cobj) |
|
void | pushPlayerHPChangeReason (lua_State *L, const PlayerHPChangeReason &reason) |
|
template<> |
bool | readParam (lua_State *L, int index) |
|
template<> |
s16 | readParam (lua_State *L, int index) |
|
template<> |
int | readParam (lua_State *L, int index) |
|
template<> |
float | readParam (lua_State *L, int index) |
|
template<> |
v2s16 | readParam (lua_State *L, int index) |
|
template<> |
v2f | readParam (lua_State *L, int index) |
|
template<> |
v3f | readParam (lua_State *L, int index) |
|
template<> |
std::string_view | readParam (lua_State *L, int index) |
|
template<> |
std::string | readParam (lua_State *L, int index) |
|
template<> |
std::string_view | readParam (lua_State *L, int index) |
| Read a string from Lua state L at index without copying it.
|
|
|
static Thread * | getCurrentThread () |
|
static void | setName (const std::string &name) |
|
static unsigned int | getNumberOfProcessors () |
|
static std::string | getCurrentModNameInsecure (lua_State *L) |
|
static std::string | getCurrentModName (lua_State *L) |
|
static bool | isSecure (lua_State *L) |
|
static bool | safeLoadString (lua_State *L, const std::string &code, const char *chunk_name) |
|
static bool | safeLoadFile (lua_State *L, const char *path, const char *display_name=NULL) |
|
static bool | checkWhitelisted (lua_State *L, const std::string &setting) |
|
static bool | checkPath (lua_State *L, const char *path, bool write_required, bool *write_allowed=NULL) |
|
template<typename T > |
static T | readParam (lua_State *L, int index) |
| Read a value using a template type T from Lua state L at index.
|
|
template<typename T > |
static T | readParam (lua_State *L, int index, const T &default_value) |
| Read a value using a template type T from Lua state L at index.
|
|
std::string | m_name |
|
std::recursive_mutex | m_luastackmutex |
|
std::string | m_last_run_mod |
|
bool | m_secure = false |
|
int | m_lock_recursion_count {} |
|
std::thread::id | m_owning_thread |
|
◆ ~AsyncWorkerThread()
AsyncWorkerThread::~AsyncWorkerThread |
( |
| ) |
|
|
virtual |
◆ AsyncWorkerThread()
AsyncWorkerThread::AsyncWorkerThread |
( |
AsyncEngine * | jobDispatcher, |
|
|
const std::string & | name ) |
|
protected |
◆ run()
void * AsyncWorkerThread::run |
( |
| ) |
|
|
virtual |
Implements Thread.
References errorstream, FATAL_ERROR, LuaJobInfo::function, AsyncEngine::getJob(), ScriptApiBase::getStack(), isErrored, jobDispatcher, LuaJobInfo::mod_origin, LuaJobInfo::params, LuaJobInfo::params_ext, PUSH_ERROR_HANDLER, AsyncEngine::putJobResult(), LuaJobInfo::result, LuaJobInfo::result_ext, script_pack(), script_unpack(), ScriptApiBase::scriptError(), AsyncEngine::server, Server::setAsyncFatalError(), ScriptApiBase::setOriginDirect(), and Thread::stopRequested().
◆ AsyncEngine
◆ isErrored
bool AsyncWorkerThread::isErrored = false |
|
private |
◆ jobDispatcher
AsyncEngine* AsyncWorkerThread::jobDispatcher = nullptr |
|
private |
The documentation for this class was generated from the following files: