Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestScriptInvocationManager Class Reference
Inheritance diagram for TestScriptInvocationManager:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
std::string OtherScript ()
 
ADDON::AddonPtr Scraper () const
 
int Start (int &handle, const ADDON::AddonPtr &addon=nullptr)
 
template<typename Condition >
bool WaitForRuns (Condition condition)
 
bool RunningAtOnce (int count)
 
bool Finish (int started=0)
 Lets the runs finish, and waits for the started to have.
 
void LeaveIdleThread (const CScriptInvocationManager::CAffinity &affinity, int handle)
 Leaves a thread bound to affinity free, with handle, and lets the runs after wait again.
 

Static Protected Member Functions

static void SetSlowRun (std::chrono::milliseconds slowRun)
 How long another run of its affinity may have a thread before a run stops waiting for it.
 
static CScriptInvocationManager & Manager ()
 

Protected Attributes

CWaitingHandler m_handler
 
XFILE::CFile * m_file {nullptr}
 
std::string m_script
 
XFILE::CFile * m_otherFile {nullptr}
 
std::vector< int > m_started
 
std::vector< int > m_handles
 The plugin handles of the runs Start() started.
 

Member Function Documentation

◆ Finish()

bool TestScriptInvocationManager::Finish ( int started = 0)
inlineprotected

Lets the runs finish, and waits for the started to have.

◆ LeaveIdleThread()

void TestScriptInvocationManager::LeaveIdleThread ( const CScriptInvocationManager::CAffinity & affinity,
int handle )
inlineprotected

Leaves a thread bound to affinity free, with handle, and lets the runs after wait again.

◆ Manager()

static CScriptInvocationManager & TestScriptInvocationManager::Manager ( )
inlinestaticprotected

◆ OtherScript()

std::string TestScriptInvocationManager::OtherScript ( )
inlineprotected

The path of a script other than the test's, deleted as the test ends, or empty if it can't be made

◆ RunningAtOnce()

bool TestScriptInvocationManager::RunningAtOnce ( int count)
inlineprotected

◆ Scraper()

ADDON::AddonPtr TestScriptInvocationManager::Scraper ( ) const
inlineprotected

A scraper whose library is the script, and whose threads are kept to run it again, as a python scraper's are

◆ SetSlowRun()

static void TestScriptInvocationManager::SetSlowRun ( std::chrono::milliseconds slowRun)
inlinestaticprotected

How long another run of its affinity may have a thread before a run stops waiting for it.

◆ SetUp()

void TestScriptInvocationManager::SetUp ( )
inlineoverrideprotected

◆ Start()

int TestScriptInvocationManager::Start ( int & handle,
const ADDON::AddonPtr & addon = nullptr )
inlineprotected

Starts the script as a plugin is run, with the handle of the thread it is given, if it is given one that has run it before, else with handle

◆ TearDown()

void TestScriptInvocationManager::TearDown ( )
inlineoverrideprotected

◆ WaitForRuns()

template<typename Condition >
bool TestScriptInvocationManager::WaitForRuns ( Condition condition)
inlineprotected

Member Data Documentation

◆ m_file

XFILE::CFile* TestScriptInvocationManager::m_file {nullptr}
protected

◆ m_handler

CWaitingHandler TestScriptInvocationManager::m_handler
protected

◆ m_handles

std::vector<int> TestScriptInvocationManager::m_handles
protected

The plugin handles of the runs Start() started.

◆ m_otherFile

XFILE::CFile* TestScriptInvocationManager::m_otherFile {nullptr}
protected

◆ m_script

std::string TestScriptInvocationManager::m_script
protected

◆ m_started

std::vector<int> TestScriptInvocationManager::m_started
protected

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