#include <Thread.h>
◆ WaitResponse
Enumerator |
---|
WAIT_INTERRUPTED | |
WAIT_SIGNALED | |
WAIT_TIMEDOUT | |
◆ CThread() [1/2]
CThread::CThread |
( |
const char * | ThreadName | ) |
|
|
explicitprotected |
◆ CThread() [2/2]
CThread::CThread |
( |
IRunnable * | pRunnable, |
|
|
const char * | ThreadName ) |
◆ ~CThread()
◆ AbortableWait()
WaitResponse CThread::AbortableWait |
( |
CEvent & | event, |
|
|
std::chrono::milliseconds | duration = std::chrono::milliseconds(-1) ) |
|
inlineprotected |
This call will wait on a CEvent in an interruptible way such that if stop is called on the thread the wait will return with a response indicating what happened.
◆ Create()
void CThread::Create |
( |
bool | bAutoDelete = false | ) |
|
◆ GetCurrentThread()
CThread * CThread::GetCurrentThread |
( |
| ) |
|
|
static |
◆ GetCurrentThreadId()
static const std::thread::id CThread::GetCurrentThreadId |
( |
| ) |
|
|
inlinestatic |
◆ IsAutoDelete()
bool CThread::IsAutoDelete |
( |
| ) |
const |
◆ IsCurrentThread()
bool CThread::IsCurrentThread |
( |
| ) |
const |
◆ IsRunning()
bool CThread::IsRunning |
( |
| ) |
const |
◆ Join()
bool CThread::Join |
( |
std::chrono::milliseconds | duration | ) |
|
◆ OnException()
virtual void CThread::OnException |
( |
| ) |
|
|
inlinevirtual |
◆ OnExit()
virtual void CThread::OnExit |
( |
| ) |
|
|
inlineprotectedvirtual |
Reimplemented in CWHelper, ADDON::CAddonStatusHandler, PAPlayer, VAAPI::COutput, VDPAU::CMixer, VDPAU::COutput, CVideoPlayer, CVideoPlayerAudio, CVideoPlayerAudioID3, CDVDRadioRDSData, CDVDTeletextData, CVideoPlayerVideo, XFILE::CFileCache, and CLanguageInvokerThread.
◆ OnStartup()
virtual void CThread::OnStartup |
( |
| ) |
|
|
inlineprotectedvirtual |
Reimplemented in CWin32PowerStateWorker, CWHelper, ADDON::CAddonStatusHandler, PAPlayer, VAAPI::COutput, VDPAU::CMixer, VDPAU::COutput, CVideoPlayer, CVideoPlayerAudio, CLanguageInvokerThread, MUSIC_GRABBER::CMusicInfoScraper, and CUdpClient.
◆ Process()
Reimplemented in CZeroconfMDNS, CIRServerSuite, CWHelper, ADDON::CAddonStatusHandler, ActiveAE::CActiveAE, ActiveAE::CActiveAESink, PAPlayer, KODI::RETRO::CGameLoop, KODI::RETRO::CRetroPlayerAutoSave, VAAPI::COutput, VDPAU::CMixer, VDPAU::COutput, CVideoPlayer, CVideoPlayerAudio, CVideoPlayerAudioID3, CDVDRadioRDSData, CDVDTeletextData, CVideoPlayerVideo, CBusyWaiter, CGUIDialogCache, CGUIDialogKeyboardTouch, XFILE::CFileCache, XFILE::CShoutcastFile, KODI::GAME::CControllerInstaller, KODI::GAME::CControllerSelect, KODI::GAME::CGUIDialogButtonCapture, KODI::GAME::CGUIConfigurationWizard, KODI::JOYSTICK::CGUIDialogNewJoystick, KODI::JOYSTICK::CRumbleGenerator, ANNOUNCEMENT::CAnnouncementManager, CLanguageInvokerThread, KODI::MESSAGING::CDelayedMessage, MUSIC_GRABBER::CMusicInfoScraper, CAirPlayServer, CAirTunesServer, EVENTSERVER::CEventServer, JSONRPC::CTCPServer, CUdpClient, PERIPHERALS::CEventScanner, CFDEventMonitor, CLirc, WSDiscovery::CWSDiscoveryListenerUDP, PVR::CPVRGUIProgressHandler, PVR::CPVRManager, PVR::CPVRRefreshTimelineItemsThread, CTimer, CAlarmClock, CJobWorker, CVideoInfoDownloader, CWin32PowerStateWorker, PERIPHERALS::CPeripheralBus, and PERIPHERALS::CPeripheralBusUSB.
◆ SetPriority()
Set the threads priority. This uses the platforms native threading library to do so.
◆ Sleep()
template<typename Rep , typename Period >
void CThread::Sleep |
( |
std::chrono::duration< Rep, Period > | duration | ) |
|
|
inline |
◆ StopThread()
void CThread::StopThread |
( |
bool | bWait = true | ) |
|
|
virtual |
◆ m_bStop
std::atomic<bool> CThread::m_bStop |
|
protected |
The documentation for this class was generated from the following files: