diff options
author | drbasic <drbasic@yandex-team.ru> | 2014-09-11 21:19:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-12 04:20:52 +0000 |
commit | eaea4278689ac7f2919b60d65eda33cd4aa7cad2 (patch) | |
tree | df505b8554d485cee78362d774c63698ff590bc7 /storage/OWNERS | |
parent | fa444bb81a6489cf52730d3aaa0bcd34367d2685 (diff) | |
download | chromium_src-eaea4278689ac7f2919b60d65eda33cd4aa7cad2.zip chromium_src-eaea4278689ac7f2919b60d65eda33cd4aa7cad2.tar.gz chromium_src-eaea4278689ac7f2919b60d65eda33cd4aa7cad2.tar.bz2 |
Fix potential race-condition _beginthread
Sometimes ppapi tests fails due to race condition.
It's safer to use _beginthreadex than _beginthread. If the thread
that's generated by _beginthread exits quickly, the handle that's
returned to the caller of _beginthread might be invalid or point to
another thread. However, the handle that's returned by _beginthreadex
has to be closed by the caller of _beginthreadex, so it is guaranteed
to be a valid handle if _beginthreadex did not return an error.
R=bbudge@chromium.org
BUG=
Review URL: https://codereview.chromium.org/547543002
Cr-Commit-Position: refs/heads/master@{#294541}
Diffstat (limited to 'storage/OWNERS')
0 files changed, 0 insertions, 0 deletions