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

#include <Win32PowerSyscall.h>

Inheritance diagram for CWin32PowerStateWorker:
CThread

Public Member Functions

 CWin32PowerStateWorker ()
 
bool QueryStateChange (PowerState State)
 
- Public Member Functions inherited from CThread
 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.
 
virtual void OnException ()
 

Protected Member Functions

virtual void Process (void)
 
virtual void OnStartup ()
 
- Protected Member Functions inherited from CThread
 CThread (const char *ThreadName)
 
virtual void OnExit ()
 
WaitResponse AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1))
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ CWin32PowerStateWorker()

CWin32PowerStateWorker::CWin32PowerStateWorker ( )
inline

Member Function Documentation

◆ OnStartup()

virtual void CWin32PowerStateWorker::OnStartup ( )
inlineprotectedvirtual

Reimplemented from CThread.

◆ Process()

void CWin32PowerStateWorker::Process ( void )
protectedvirtual

Reimplemented from CThread.

◆ QueryStateChange()

bool CWin32PowerStateWorker::QueryStateChange ( PowerState State)

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