Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CLanguageInvokerThread Class Reference

#include <LanguageInvokerThread.h>

Inheritance diagram for CLanguageInvokerThread:
ILanguageInvoker CThread

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 ()
 
- Public Member Functions inherited from ILanguageInvoker
 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::AddonPtrGetAddon () 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
 
- Protected Member Functions inherited from ILanguageInvoker
virtual void AbortNotification ()
 
virtual void pulseGlobalEvent ()
 
virtual bool onExecutionInitialized ()
 
virtual void onExecutionFailed ()
 
virtual void onExecutionDone ()
 
virtual void onExecutionFinalized ()
 
void setState (InvokerState state)
 
- Protected Member Functions inherited from CThread
 CThread (const char *ThreadName)
 
WaitResponse AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1))
 
 CThread (IRunnable *pRunnable, const char *ThreadName)
 
virtual ~CThread ()
 
void Create (bool bAutoDelete=false)
 
template<typename Rep , typename Period >
void Sleep (std::chrono::duration< Rep, Period > duration)
 
bool IsAutoDelete () const
 
virtual void StopThread (bool bWait=true)
 
bool IsRunning () const
 
bool IsCurrentThread () const
 
bool Join (std::chrono::milliseconds duration)
 
bool SetPriority (const ThreadPriority &priority)
 Set the threads priority. This uses the platforms native threading library to do so.
 

Additional Inherited Members

- Protected Types inherited from CThread
enum  WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 }
 
- Static Protected Member Functions inherited from CThread
static const std::thread::id GetCurrentThreadId ()
 
static CThreadGetCurrentThread ()
 
- Protected Attributes inherited from ILanguageInvoker
ADDON::AddonPtr m_addon
 
- Protected Attributes inherited from CThread
std::atomic< boolm_bStop
 

Constructor & Destructor Documentation

◆ CLanguageInvokerThread()

CLanguageInvokerThread::CLanguageInvokerThread ( LanguageInvokerPtr invoker,
CScriptInvocationManager * invocationManager,
bool reuseable )

◆ ~CLanguageInvokerThread()

CLanguageInvokerThread::~CLanguageInvokerThread ( )
override

Member Function Documentation

◆ execute()

bool CLanguageInvokerThread::execute ( const std::string & script,
const std::vector< std::string > & arguments )
overrideprotectedvirtual

Implements ILanguageInvoker.

◆ GetInvoker()

LanguageInvokerPtr CLanguageInvokerThread::GetInvoker ( ) const
inline

◆ GetScript()

const std::string & CLanguageInvokerThread::GetScript ( ) const
inline

◆ GetState()

InvokerState CLanguageInvokerThread::GetState ( ) const
virtual

◆ OnException()

void CLanguageInvokerThread::OnException ( )
overrideprotectedvirtual

Reimplemented from CThread.

◆ OnExit()

void CLanguageInvokerThread::OnExit ( )
overrideprotectedvirtual

Reimplemented from CThread.

◆ OnStartup()

void CLanguageInvokerThread::OnStartup ( )
overrideprotectedvirtual

Reimplemented from CThread.

◆ Process()

void CLanguageInvokerThread::Process ( void )
overrideprotectedvirtual

Reimplemented from CThread.

◆ Release()

void CLanguageInvokerThread::Release ( )
virtual

◆ Reuseable()

bool CLanguageInvokerThread::Reuseable ( const std::string & script) const
inline

◆ stop()

bool CLanguageInvokerThread::stop ( bool wait)
overrideprotectedvirtual

Implements ILanguageInvoker.


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