Ignore:
Timestamp:
Apr 1, 2008, 11:38:32 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Darin.

Make MathExtras.h thread safe.

  • kjs/math_object.cpp: (KJS::mathProtoFuncRandom): If threading is enabled, rely on initializeThreading to call wtf_random_init().
  • wtf/Threading.h:
  • wtf/ThreadingGtk.cpp: (WTF::initializeThreading):
  • wtf/ThreadingNone.cpp: (WTF::initializeThreading):
  • wtf/ThreadingPthreads.cpp: (WTF::initializeThreading):
  • wtf/ThreadingWin.cpp: (WTF::initializeThreading): Call wtf_random_init(); made the function non-inline to avoid having to include too many headers in Threading.h.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/ThreadingNone.cpp

    r30849 r31560  
    3434Mutex* atomicallyInitializedStaticMutex;
    3535
     36void initializeThreading() {}
    3637ThreadIdentifier createThread(ThreadFunction, void*) { return 0; }
    3738int waitForThreadCompletion(ThreadIdentifier, void**) { return 0; }
Note: See TracChangeset for help on using the changeset viewer.