Changeset 229406 in webkit


Ignore:
Timestamp:
Mar 8, 2018 5:00:31 AM (6 years ago)
Author:
zandobersek@gmail.com
Message:

[GLib] RunLoop::wakeUp(): use a zero value instead of the monotonic time
https://bugs.webkit.org/show_bug.cgi?id=183447

Reviewed by Carlos Garcia Campos.

  • wtf/glib/RunLoopGLib.cpp:

(WTF::RunLoop::wakeUp): Micro-optimize the wake-up schedule by using
a zero value as the GSource ready time, instead of retrieving and using
the current monotonic time.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r229401 r229406  
     12018-03-08  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GLib] RunLoop::wakeUp(): use a zero value instead of the monotonic time
     4        https://bugs.webkit.org/show_bug.cgi?id=183447
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * wtf/glib/RunLoopGLib.cpp:
     9        (WTF::RunLoop::wakeUp): Micro-optimize the wake-up schedule by using
     10        a zero value as the GSource ready time, instead of retrieving and using
     11        the current monotonic time.
     12
    1132018-03-08  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/WTF/wtf/glib/RunLoopGLib.cpp

    r229195 r229406  
    121121void RunLoop::wakeUp()
    122122{
    123     g_source_set_ready_time(m_source.get(), g_get_monotonic_time());
     123    g_source_set_ready_time(m_source.get(), 0);
    124124}
    125125
Note: See TracChangeset for help on using the changeset viewer.