The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
application_lua_kernel::thread Class Reference

#include <application_lua_kernel.hpp>

Public Member Functions

bool is_running ()
 
std::string status ()
 
request_list run_script (const plugins_context &ctxt, const std::vector< plugins_manager::event > &queue)
 

Private Member Functions

 thread (const thread &)=delete
 
threadoperator= (const thread &)=delete
 
 thread (lua_State *)
 

Private Attributes

lua_StateT_
 
bool started_
 

Friends

class application_lua_kernel
 

Detailed Description

Definition at line 34 of file application_lua_kernel.hpp.

Constructor & Destructor Documentation

◆ thread() [1/2]

application_lua_kernel::thread::thread ( const thread )
privatedelete

◆ thread() [2/2]

application_lua_kernel::thread::thread ( lua_State T)
private

Definition at line 115 of file application_lua_kernel.cpp.

Member Function Documentation

◆ is_running()

bool application_lua_kernel::thread::is_running ( )

Definition at line 136 of file application_lua_kernel.cpp.

References LUA_OK, lua_status(), LUA_YIELD, started_, and T_.

◆ operator=()

thread& application_lua_kernel::thread::operator= ( const thread )
privatedelete

◆ run_script()

application_lua_kernel::request_list application_lua_kernel::thread::run_script ( const plugins_context ctxt,
const std::vector< plugins_manager::event > &  queue 
)

◆ status()

std::string application_lua_kernel::thread::status ( )

Definition at line 117 of file application_lua_kernel.cpp.

References LUA_OK, lua_status(), LUA_YIELD, started_, and T_.

Friends And Related Function Documentation

◆ application_lua_kernel

friend class application_lua_kernel
friend

Definition at line 48 of file application_lua_kernel.hpp.

Member Data Documentation

◆ started_

bool application_lua_kernel::thread::started_
private

Definition at line 36 of file application_lua_kernel.hpp.

Referenced by is_running(), run_script(), and status().

◆ T_

lua_State* application_lua_kernel::thread::T_
private

Definition at line 35 of file application_lua_kernel.hpp.

Referenced by is_running(), run_script(), and status().


The documentation for this class was generated from the following files: