| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Torch Mobile, Inc. All rights reserved. | 4 * Copyright (C) 2009 Torch Mobile, Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 atomicallyInitializedStaticMutex->locked(); | 397 atomicallyInitializedStaticMutex->locked(); |
| 398 } | 398 } |
| 399 | 399 |
| 400 bool isBeforeThreadCreated() { | 400 bool isBeforeThreadCreated() { |
| 401 return !s_threadCreated; | 401 return !s_threadCreated; |
| 402 } | 402 } |
| 403 | 403 |
| 404 void willCreateThread() { | 404 void willCreateThread() { |
| 405 s_threadCreated = true; | 405 s_threadCreated = true; |
| 406 } | 406 } |
| 407 #else |
| 408 bool isAtomicallyInitializedStaticMutexLockHeld() { |
| 409 return false; |
| 410 } |
| 411 bool isBeforeThreadCreated() { |
| 412 return false; |
| 413 } |
| 414 void willCreateThread() {} |
| 407 #endif | 415 #endif |
| 408 | 416 |
| 409 } // namespace WTF | 417 } // namespace WTF |
| 410 | 418 |
| 411 #endif // OS(WIN) | 419 #endif // OS(WIN) |
| OLD | NEW |