Ignore:
Timestamp:
Jun 15, 2002, 12:59:07 PM (23 years ago)
Author:
darin
Message:
  • JavaScriptCore.pbproj/project.pbxproj: Removed explicit PFE_FILE_C_DIALECTS now that Project Builder handles this automatically. Removed explicit USE_GCC3 since that's implicit now. Also, since this project is all C++, only use WARNING_CFLAGS with flags that are appropriate for C++; don't bother breaking out C vs. C++.
  • kjs/collector.cpp: Now that the system warning is fixed, use PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER.
  • kjs/internal.cpp: Use PTHREAD_MUTEX_INITIALIZER.
  • kjs/ustring.cpp: Use PTHREAD_ONCE_INIT.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r1326 r1371  
    6868
    6969#ifdef APPLE_CHANGES
    70 // FIXME: fix these once static initializers for pthread_cond_t and
    71 // pthread_mutex_t are fixed not to warn.
    72 static pthread_mutex_t collectorLock = {_PTHREAD_MUTEX_SIG_init, {}};
    73 static pthread_cond_t collectorCondition = {_PTHREAD_COND_SIG_init, {}};
     70static pthread_mutex_t collectorLock = PTHREAD_MUTEX_INITIALIZER;
     71static pthread_cond_t collectorCondition = PTHREAD_COND_INITIALIZER;
    7472static unsigned collectorLockCount = 0;
    7573static pthread_t collectorLockThread;
Note: See TracChangeset for help on using the changeset viewer.