Fix a minor race condition for ThreadPoolExecutor.
Summary: This fixes a race condition detected by ThreadSanitizer. The thread list is protected by a mutex, but individual structs in the list are not protected, leading to racy access to two of their fields. This diff makes the fields atomic. Reviewed By: yfeldblum Differential Revision: D21484748 fbshipit-source-id: a981419f47a2aebaf1d40b23e9c4967cf2104aaa
Showing
Please register or sign in to comment