Always initialize SimpleThreadImpl::thread_manager_
SimpleThreadImpl::thread_manager_ is initialized in its thread's Run function which means that it is racy in relationship to the use. This change doesn't fix the raciness but it does initialize thread_manager_ to nullptr in the class declaration which is a good practice. Fixing the code to not use SimpleThreadImpl until Run() has completed the initialization is left for the owner. Bug: 897872 Change-Id: I50d38f10d4297334ae02698ecd43a0fbf44db374 Reviewed-on: https://chromium-review.googlesource.com/c/1316657Reviewed-by:Alexander Timin <altimin@chromium.org> Commit-Queue: Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#605305}
Showing
Please register or sign in to comment