commit | adf8e94df9a1995c2bf61a0efd88d6eda240ffe1 | [log] [tgz] |
---|---|---|
author | Robert Sesek <rsesek@chromium.org> | Wed Apr 17 18:59:42 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 17 18:59:42 2019 |
tree | 4f19bf33313bf5b010e477b48acc3f1054d9d552 | |
parent | 30929267dc5157f96bf41a105a14c05029a562ce [diff] |
Use pthread_mach_thread_np() in ComputeThreadTicks(). Using mach_thread_self() returns a reference that must be deallocated with a separate system call. Using the cached port stored by pthreads means not having to issue two system calls to get the thread ticks. Change-Id: Ic3a1e8cbe74a88f070a1c6843b03778132a53b98 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1572438 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Robert Sesek <rsesek@chromium.org> Cr-Commit-Position: refs/heads/master@{#651832}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .