xbmc
|
Class to scan for peripheral events. More...
#include <EventScanner.h>
Public Member Functions | |
CEventScanner (IEventScannerCallback &callback) | |
void | Start () |
void | Stop () |
EventPollHandlePtr | RegisterPollHandle () |
EventLockHandlePtr | RegisterLock () |
Acquire a lock that prevents event processing while held. | |
void | Activate (CEventPollHandle &handle) override |
void | Deactivate (CEventPollHandle &handle) override |
void | HandleEvents (bool bWait) override |
void | Release (CEventPollHandle &handle) override |
void | ReleaseLock (CEventLockHandle &handle) override |
Protected Member Functions | |
void | Process () override |
![]() | |
CThread (const char *ThreadName) | |
virtual void | OnStartup () |
virtual void | OnExit () |
WaitResponse | AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1)) |
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. | |
CThread (IRunnable *pRunnable, const char *ThreadName) | |
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 () |
Additional Inherited Members | |
![]() | |
enum | WaitResponse { WAIT_INTERRUPTED = -1, WAIT_SIGNALED = 0, WAIT_TIMEDOUT = 1 } |
![]() | |
static const std::thread::id | GetCurrentThreadId () |
static CThread * | GetCurrentThread () |
![]() | |
std::atomic< bool > | m_bStop |
Class to scan for peripheral events.
By default, a rate of 60 Hz is used. A client can obtain control over when input is handled by registering for a polling handle.