Ignore:
Timestamp:
Oct 26, 2009, 3:46:55 AM (16 years ago)
Author:
[email protected]
Message:

2009-10-26 Steve Block <[email protected]>

Reviewed by Darin Adler.

Adds ability to disable ReadWriteLock on platforms (eg Android) that use pthreads but do not support pthread_rwlock.
https://bugs.webkit.org/show_bug.cgi?id=30713

  • wtf/Platform.h: Modified. Defines HAVE_PTHREAD_RWLOCK for all platforms currently using pthreads.
  • wtf/Threading.h: Modified. Use pthread_rwlock_t only when HAVE_PTHREAD_RWLOCK is defined.
  • wtf/ThreadingPthreads.cpp: Modified. Build ReadWriteLock methods only when HAVE_PTHREAD_RWLOCK is defined.
File:
1 edited

Legend:

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

    r48300 r50052  
    129129#if USE(PTHREADS)
    130130typedef pthread_mutex_t PlatformMutex;
     131#if HAVE(PTHREAD_RWLOCK)
    131132typedef pthread_rwlock_t PlatformReadWriteLock;
     133#else
     134typedef void* PlatformReadWriteLock;
     135#endif
    132136typedef pthread_cond_t PlatformCondition;
    133137#elif PLATFORM(GTK)
Note: See TracChangeset for help on using the changeset viewer.