![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <LanguageInvokerThread.h>
Public Member Functions | |
CLanguageInvokerThread (LanguageInvokerPtr invoker, CScriptInvocationManager *invocationManager, bool reuseable) | |
~CLanguageInvokerThread () override | |
virtual InvokerState | GetState () const |
const std::string & | GetScript () const |
LanguageInvokerPtr | GetInvoker () const |
bool | Reuseable (const std::string &script) const |
virtual void | Release () |
![]() | |
ILanguageInvoker (ILanguageInvocationHandler *invocationHandler) | |
virtual | ~ILanguageInvoker () |
virtual bool | Execute (const std::string &script, const std::vector< std::string > &arguments=std::vector< std::string >()) |
virtual bool | Stop (bool abort=false) |
virtual bool | IsStopping () const |
void | SetId (int id) |
int | GetId () const |
const ADDON::AddonPtr & | GetAddon () const |
void | SetAddon (const ADDON::AddonPtr &addon) |
InvokerState | GetState () const |
bool | IsActive () const |
bool | IsRunning () const |
void | Reset () |
Protected Member Functions | |
bool | execute (const std::string &script, const std::vector< std::string > &arguments) override |
bool | stop (bool wait) override |
void | OnStartup () override |
void | Process () override |
void | OnExit () override |
void | OnException () override |
![]() | |
virtual void | pulseGlobalEvent () |
virtual bool | onExecutionInitialized () |
virtual void | onAbortRequested () |
virtual void | onExecutionFailed () |
virtual void | onExecutionDone () |
virtual void | onExecutionFinalized () |
void | setState (InvokerState state) |
![]() | |
CThread (const char *ThreadName) | |
WaitResponse | AbortableWait (CEvent &event, int timeoutMillis=-1) |
CThread (IRunnable *pRunnable, const char *ThreadName) | |
virtual | ~CThread () |
void | Create (bool bAutoDelete=false, unsigned stacksize=0) |
void | Sleep (unsigned int milliseconds) |
int | GetSchedRRPriority (void) |
bool | SetPrioritySched_RR (int iPriority) |
bool | IsAutoDelete () const |
virtual void | StopThread (bool bWait=true) |
bool | IsRunning () const |
bool | IsCurrentThread () const |
int | GetMinPriority (void) |
int | GetMaxPriority (void) |
int | GetNormalPriority (void) |
int | GetPriority (void) |
bool | SetPriority (const int iPriority) |
bool | WaitForThreadExit (unsigned int milliseconds) |
float | GetRelativeUsage () |
int64_t | GetAbsoluteUsage () |
Additional Inherited Members | |
![]() | |
enum | WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 } |
![]() | |
static bool | IsCurrentThread (const ThreadIdentifier tid) |
static ThreadIdentifier | GetCurrentThreadId () |
static ThreadIdentifier | GetDisplayThreadId (const ThreadIdentifier tid) |
static CThread * | GetCurrentThread () |
![]() | |
ADDON::AddonPtr | m_addon |
![]() | |
std::atomic< bool > | m_bStop |
CLanguageInvokerThread::CLanguageInvokerThread | ( | LanguageInvokerPtr | invoker, |
CScriptInvocationManager * | invocationManager, | ||
bool | reuseable | ||
) |
|
override |
|
overrideprotectedvirtual |
Implements ILanguageInvoker.
|
inline |
|
inline |
|
virtual |
|
virtual |
|
inline |
|
overrideprotectedvirtual |
Implements ILanguageInvoker.