Descriptionbase/threading: fix a potential race issue on start_event_
WaitableEvent is thread-safe, but scoped_ptr<WaitableEvent> is not.
It should need a mutex lock to access the internal pointer if the
pointer may be set or reset after the thread creation that will share
the scoped_ptr.
Avoid the issue, use WaitableEvent instead of scoped_ptr<WaitableEvent>.
Committed: https://crrev.com/53818d55bbb632e703158aa831a03794bffd23f2
Cr-Commit-Position: refs/heads/master@{#342082}
Patch Set 1 #Patch Set 2 : revise #Patch Set 3 : simpler #
Total comments: 3
Patch Set 4 : review #3/#5 #Patch Set 5 : [rebase] #
Messages
Total messages: 15 (4 generated)
|