Chromium Code Reviews| Index: vm/thread_macos.cc |
| =================================================================== |
| --- vm/thread_macos.cc (revision 2837) |
| +++ vm/thread_macos.cc (working copy) |
| @@ -126,7 +126,7 @@ |
| bool Mutex::TryLock() { |
| int result = pthread_mutex_trylock(data_.mutex()); |
| // Return false if the lock is busy and locking failed. |
| - if (result == EBUSY) { |
| + if ((result == EBUSY) || (result == EDEADLK)) { |
| return false; |
| } |
| ASSERT(result == 0); // Verify no other errors. |