Ignore:
Timestamp:
Oct 20, 2008, 10:06:10 AM (17 years ago)
Author:
[email protected]
Message:

2008-10-20 Alp Toker <[email protected]>

Reviewed by Mark Rowe.

Use pthread instead of GThread where possible in the GTK+ port. This
fixes issues with global initialisation, particularly on GTK+/Win32
where a late g_thread_init() will cause hangs.

Fix the pthread conditionals in the FTP code to correctly define
threadsafe *_r functions on Windows. Partly fixes the GTK+/Win32
build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Threading.h

    r37660 r37732  
    6464#include <wtf/Noncopyable.h>
    6565
    66 #if PLATFORM(GTK)
    67 #include <wtf/GOwnPtr.h>
    68 #endif
    69 
    7066#if PLATFORM(WIN_OS)
    7167#include <windows.h>
     
    8278#if USE(PTHREADS)
    8379#include <pthread.h>
    84 #endif
    85 
    86 #if PLATFORM(GTK)
     80#elif PLATFORM(GTK)
     81#include <wtf/GOwnPtr.h>
    8782typedef struct _GMutex GMutex;
    8883typedef struct _GCond GCond;
Note: See TracChangeset for help on using the changeset viewer.