Skip to content

Commit

Permalink
Merge r229406 - [GLib] RunLoop::wakeUp(): use a zero value instead of…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
zdobersek authored and carlosgcampos committed Apr 9, 2018
1 parent 1c4d691 commit 9f2fefc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Source/WTF/ChangeLog
@@ -1,3 +1,15 @@
2018-03-08 Zan Dobersek <zdobersek@igalia.com>

[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.

2018-02-23 Fujii Hironori <Hironori.Fujii@sony.com>

warning: unused variable 'InitialBufferSize' in Assertions.cpp
Expand Down
2 changes: 1 addition & 1 deletion Source/WTF/wtf/glib/RunLoopGLib.cpp
Expand Up @@ -120,7 +120,7 @@ void RunLoop::stop()

void RunLoop::wakeUp()
{
g_source_set_ready_time(m_source.get(), g_get_monotonic_time());
g_source_set_ready_time(m_source.get(), 0);
}

class DispatchAfterContext {
Expand Down

0 comments on commit 9f2fefc

Please sign in to comment.