| Index: Source/wtf/ThreadingWin.cpp
|
| diff --git a/Source/wtf/ThreadingWin.cpp b/Source/wtf/ThreadingWin.cpp
|
| index cc342571014f09a02c1ea9d3a519d4a42200e44c..686b51e272b4a34c3717deddd349edc68fc76fc7 100644
|
| --- a/Source/wtf/ThreadingWin.cpp
|
| +++ b/Source/wtf/ThreadingWin.cpp
|
| @@ -391,6 +391,25 @@ DWORD absoluteTimeToWaitTimeoutInterval(double absoluteTime)
|
| return static_cast<DWORD>((absoluteTime - currentTime) * 1000.0);
|
| }
|
|
|
| +#if ENABLE(ASSERT)
|
| +static bool s_threadCreated = false;
|
| +
|
| +bool isAtomicallyInitializedStaticMutexLockHeld()
|
| +{
|
| + return atomicallyInitializedStaticMutex && atomicallyInitializedStaticMutex->locked();
|
| +}
|
| +
|
| +bool isBeforeThreadCreated()
|
| +{
|
| + return !s_threadCreated;
|
| +}
|
| +
|
| +void willCreateThread()
|
| +{
|
| + s_threadCreated = true;
|
| +}
|
| +#endif
|
| +
|
| } // namespace WTF
|
|
|
| #endif // OS(WIN)
|
|
|