Fix unsynchronized accesses in IOThreadPoolExecutor::getEventBase
Summary: [Folly] Fix unsynchronized accesses in `IOThreadPoolExecutor::getEventBase`. `getEventBase` may be invoked concurrently from two threads - RMWs to `nextThread_` must be synchronized with each other. `getEventBase` may be invoked concurrently with `setNumThreads` - the former's reads of `threadList_.vec_` must be synchronized with the latter's writes to it. Reviewed By: kennyyu Differential Revision: D6206916 fbshipit-source-id: 8bfae158effb5896ab478d0c20310293b037c892
Showing
Please register or sign in to comment