Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Issue 547543002: Fix potential race-condition _beginthread (Closed)

Created:
6 years, 3 months ago by drbasic
Modified:
6 years, 3 months ago
Reviewers:
bbudge
CC:
chromium-reviews, dmichael (off chromium)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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= 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -18 lines) Patch
M ppapi/tests/pp_thread.h View 1 2 3 3 chunks +32 lines, -16 lines 0 comments Download
M ppapi/tests/test_case.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_post_message.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
drbasic
6 years, 3 months ago (2014-09-05 04:56:13 UTC) #1
bbudge
https://codereview.chromium.org/547543002/diff/1/ppapi/tests/pp_thread.h File ppapi/tests/pp_thread.h (right): https://codereview.chromium.org/547543002/diff/1/ppapi/tests/pp_thread.h#newcode41 ppapi/tests/pp_thread.h:41: struct PP_ThreadType { Given that this is now a ...
6 years, 3 months ago (2014-09-05 17:22:59 UTC) #2
drbasic
Please take a look.
6 years, 3 months ago (2014-09-11 03:28:29 UTC) #3
bbudge
LGTM w/nit https://codereview.chromium.org/547543002/diff/40001/ppapi/tests/pp_thread.h File ppapi/tests/pp_thread.h (right): https://codereview.chromium.org/547543002/diff/40001/ppapi/tests/pp_thread.h#newcode93 ppapi/tests/pp_thread.h:93: PP_Thread* params = reinterpret_cast<PP_Thread*>(param); nit: name this ...
6 years, 3 months ago (2014-09-11 14:06:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/547543002/60001
6 years, 3 months ago (2014-09-12 03:19:11 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 12451fcfaf980e139a8a1ae3a205de572ae38c1b
6 years, 3 months ago (2014-09-12 04:20:13 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 04:21:57 UTC) #8
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/eaea4278689ac7f2919b60d65eda33cd4aa7cad2
Cr-Commit-Position: refs/heads/master@{#294541}

Powered by Google App Engine
This is Rietveld 408576698