D14302: Don't block forever in ensureKdeinitRunning
Thiago Macieira
noreply at phabricator.kde.org
Tue Jul 24 17:00:18 BST 2018
thiago added a comment.
In D14302#296671 <https://phabricator.kde.org/D14302#296671>, @jtamate wrote:
> Another hypothesis:
>
> QDeadlineTimer::QDeadlineTimer(qint64 msecs, Qt::TimerType type) Q_DECL_NOTHROW
> : t2(0)
> {
> setRemainingTime(msecs, type);
> }
>
>
>
> As t1 is not initialized and QDeadlineTimer::setPreciseRemainingTime only add to t1, it could be any value instead of 0?.
>
> Should I open a Qt bug?
No, because your statement is incorrect. setPreciseRemainignTime *does* assign to t1:
*this = current(timerType);
if (QDeadlineTimerNanosecondsInT2) {
t1 += secs + toSecsAndNSecs(nsecs).first;
t2 += toSecsAndNSecs(nsecs).second;
REPOSITORY
R271 KDBusAddons
REVISION DETAIL
https://phabricator.kde.org/D14302
To: jtamate, dfaure, #frameworks, thiago
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180724/348d16c8/attachment.html>
More information about the Kde-frameworks-devel
mailing list