diff --git a/src/lib/platform/EiEventQueueBuffer.cpp b/src/lib/platform/EiEventQueueBuffer.cpp index 71b5a938f..8a1f55db5 100644 --- a/src/lib/platform/EiEventQueueBuffer.cpp +++ b/src/lib/platform/EiEventQueueBuffer.cpp @@ -45,7 +45,7 @@ EiEventQueueBuffer::~EiEventQueueBuffer() close(m_pipeWrite); } -void EiEventQueueBuffer::waitForEvent(double timeout_in_ms) +void EiEventQueueBuffer::waitForEvent(double msTimeout) { Thread::testCancel(); @@ -59,7 +59,7 @@ void EiEventQueueBuffer::waitForEvent(double timeout_in_ms) pfds[s_pipeFd].fd = m_pipeRead; pfds[s_pipeFd].events = POLLIN; - int timeout = (timeout_in_ms < 0.0) ? -1 : static_cast(1000.0 * timeout_in_ms); + int timeout = (msTimeout < 0.0) ? -1 : static_cast(1000.0 * msTimeout); if (int retval = poll(pfds, s_pollFdCount, timeout); retval > 0) { if (pfds[s_eiFd].revents & POLLIN) { diff --git a/src/lib/platform/EiEventQueueBuffer.h b/src/lib/platform/EiEventQueueBuffer.h index f5f598eff..15f4f24f6 100644 --- a/src/lib/platform/EiEventQueueBuffer.h +++ b/src/lib/platform/EiEventQueueBuffer.h @@ -31,7 +31,7 @@ public: { // do nothing } - void waitForEvent(double timeout_in_ms) override; + void waitForEvent(double msTimeout) override; Type getEvent(Event &event, uint32_t &dataID) override; bool addEvent(uint32_t dataID) override; bool isEmpty() const override;