Ignore:
Timestamp:
May 22, 2021, 4:17:01 AM (4 years ago)
Author:
[email protected]
Message:

Unreviewed, reverting r277913.
https://bugs.webkit.org/show_bug.cgi?id=226140

Caused multiple layout-test crash on mac debug queues

Reverted changeset:

"Replace LockHolder with Locker in local variables"
https://bugs.webkit.org/show_bug.cgi?id=226133
https://trac.webkit.org/changeset/277913

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/TestWebKitAPI/Tests/WTF/glib/WorkQueueGLib.cpp

    r277913 r277917  
    5252    GRefPtr<GFile> file = adoptGRef(g_file_new_for_path(currentDirectory.get()));
    5353
    54     Locker locker { context.m_lock };
     54    LockHolder locker(context.m_lock);
    5555    queue->dispatch([&](void) {
    5656        EXPECT_TRUE(g_main_context_get_thread_default());
     
    6060            [](GObject*, GAsyncResult*, gpointer userData) {
    6161                TestingContext* context = static_cast<TestingContext*>(userData);
    62                 Locker locker { context->m_lock };
     62                LockHolder locker(context->m_lock);
    6363                EXPECT_EQ(g_main_context_get_thread_default(), context->m_mainContext);
    6464                context->m_testCompleted.notifyOne();
Note: See TracChangeset for help on using the changeset viewer.