DescriptionFix 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=
Committed: https://crrev.com/eaea4278689ac7f2919b60d65eda33cd4aa7cad2
Cr-Commit-Position: refs/heads/master@{#294541}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Fix review issues #Patch Set 3 : Removed typedef PP_WindowsThreadFunction. #
Total comments: 1
Patch Set 4 : Fix review issues #
Messages
Total messages: 8 (1 generated)
|