chore: EiEventQueueBuffer, conform to naming conventions
This commit is contained in:
parent
9442295227
commit
2ba7fb2f05
2 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ EiEventQueueBuffer::~EiEventQueueBuffer()
|
||||||
close(m_pipeWrite);
|
close(m_pipeWrite);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EiEventQueueBuffer::waitForEvent(double timeout_in_ms)
|
void EiEventQueueBuffer::waitForEvent(double msTimeout)
|
||||||
{
|
{
|
||||||
Thread::testCancel();
|
Thread::testCancel();
|
||||||
|
|
||||||
|
|
@ -59,7 +59,7 @@ void EiEventQueueBuffer::waitForEvent(double timeout_in_ms)
|
||||||
pfds[s_pipeFd].fd = m_pipeRead;
|
pfds[s_pipeFd].fd = m_pipeRead;
|
||||||
pfds[s_pipeFd].events = POLLIN;
|
pfds[s_pipeFd].events = POLLIN;
|
||||||
|
|
||||||
int timeout = (timeout_in_ms < 0.0) ? -1 : static_cast<int>(1000.0 * timeout_in_ms);
|
int timeout = (msTimeout < 0.0) ? -1 : static_cast<int>(1000.0 * msTimeout);
|
||||||
|
|
||||||
if (int retval = poll(pfds, s_pollFdCount, timeout); retval > 0) {
|
if (int retval = poll(pfds, s_pollFdCount, timeout); retval > 0) {
|
||||||
if (pfds[s_eiFd].revents & POLLIN) {
|
if (pfds[s_eiFd].revents & POLLIN) {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ public:
|
||||||
{
|
{
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
void waitForEvent(double timeout_in_ms) override;
|
void waitForEvent(double msTimeout) override;
|
||||||
Type getEvent(Event &event, uint32_t &dataID) override;
|
Type getEvent(Event &event, uint32_t &dataID) override;
|
||||||
bool addEvent(uint32_t dataID) override;
|
bool addEvent(uint32_t dataID) override;
|
||||||
bool isEmpty() const override;
|
bool isEmpty() const override;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue