| Index: Source/wtf/ThreadingPthreads.cpp
|
| diff --git a/Source/wtf/ThreadingPthreads.cpp b/Source/wtf/ThreadingPthreads.cpp
|
| index 2208ca4e9a863411ba69a3ee9b52c6c221a96ceb..42091057fd34e47a65a4a6f406700eeb34c311eb 100644
|
| --- a/Source/wtf/ThreadingPthreads.cpp
|
| +++ b/Source/wtf/ThreadingPthreads.cpp
|
| @@ -246,6 +246,25 @@ void ThreadCondition::broadcast()
|
| ASSERT_UNUSED(result, !result);
|
| }
|
|
|
| +#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 // USE(PTHREADS)
|
|
|