use atomic variables correctly in FunctionSchedulerTest
Summary: Most of the tests in FunctionSchedulerTest update a variable in one thread (the FunctionScheduler thread) and then check its value in the main thread. These previously were not using any synchronization between the threads. This fixes them to use `std::atomic` to ensure proper synchronization. Reviewed By: wez Differential Revision: D6880254 fbshipit-source-id: facfbdf06312f731c64389fb4382b5cb078b76b9
Showing
Please register or sign in to comment