commit | f13f8690bede09ca97071e9786d68bc0758a24cc | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@google.com> | Thu Jun 20 16:44:23 2019 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Aug 05 13:59:33 2019 +0000 |
tree | fc0fd399ff07d666812a12821a74256dbe380c48 | |
parent | af08d7f05ca664cc4b11a3c377e7891bdb7ccab3 [diff] |
semaphore_wait() until KERN_SUCCESS Like the Posix code below it, the Mac semaphore wait code can wake spuriously. Keep trying if we get KERN_ABORTED. Pattern aped from V8. I noticed they like us don't do anything to test if the Windows WaitForSingleObject() call fails. Can it fail? Bug: chromium:977341 Change-Id: I34f407fc4d6717deb6edcf7aa7bed1f8fb8b1baa Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222583 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/232376 Reviewed-by: Mike Klein <mtklein@google.com>