QEventDispatcherUNIX: clarify some code with a comment

Change-Id: I8bb6c39f4764b530a407ad6d68bf09bb8742ac4c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Ahmad Samir 2023-08-02 19:39:15 +03:00
parent 90e0c6693b
commit c4865c3596
1 changed files with 3 additions and 0 deletions

View File

@ -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 };