QEventDispatcherUNIX: clarify some code with a comment
Change-Id: I8bb6c39f4764b530a407ad6d68bf09bb8742ac4c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
90e0c6693b
commit
c4865c3596
|
|
@ -426,6 +426,9 @@ bool QEventDispatcherUNIX::processEvents(QEventLoop::ProcessEventsFlags flags)
|
|||
if (d->interrupt.loadRelaxed())
|
||||
return false;
|
||||
|
||||
// If canWait is true, and include_timers is false or there are no pending
|
||||
// timers, call qt_safe_poll() with a nullptr so that it waits until there
|
||||
// are events to process (see QEventLoop::WaitForMoreEvents).
|
||||
timespec *tm = nullptr;
|
||||
timespec wait_tm = { 0, 0 };
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue