Changeset 39204 in webkit


Ignore:
Timestamp:
Dec 11, 2008 3:15:38 AM (15 years ago)
Author:
zecke@webkit.org
Message:

2008-12-04 Gabor Loki <loki@inf.u-szeged.hu>

Reviewed by Darin Adler and landed by Holger Freyther.

<https://bugs.webkit.org/show_bug.cgi?id=22648>
Fix threading on Qt-port and Gtk-port for Sampling tool.

  • wtf/ThreadingGtk.cpp: (WTF::waitForThreadCompletion):
  • wtf/ThreadingQt.cpp: (WTF::waitForThreadCompletion):
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r39198 r39204  
     12008-12-11  Gabor Loki  <loki@inf.u-szeged.hu>
     2
     3        Reviewed by Darin Adler and landed by Holger Freyther.
     4
     5        <https://bugs.webkit.org/show_bug.cgi?id=22648>
     6        Fix threading on Qt-port and Gtk-port for Sampling tool.
     7
     8        * wtf/ThreadingGtk.cpp:
     9        (WTF::waitForThreadCompletion):
     10        * wtf/ThreadingQt.cpp:
     11        (WTF::waitForThreadCompletion):
     12
    1132008-12-10  Cameron Zwarich  <zwarich@apple.com>
    214
  • trunk/JavaScriptCore/wtf/ThreadingGtk.cpp

    r38101 r39204  
    141141    GThread* thread = threadForIdentifier(threadID);
    142142
    143     *result = g_thread_join(thread);
     143    void* joinResult = g_thread_join(thread);
     144    if (result)
     145        *result = joinResult;
    144146
    145147    clearThreadForIdentifier(threadID);
  • trunk/JavaScriptCore/wtf/ThreadingQt.cpp

    r38101 r39204  
    169169
    170170    clearThreadForIdentifier(threadID);
    171     *result = static_cast<ThreadPrivate*>(thread)->getReturnValue();
     171    if (result)
     172        *result = static_cast<ThreadPrivate*>(thread)->getReturnValue();
    172173
    173174    return !res;
Note: See TracChangeset for help on using the changeset viewer.