Add thread timeout memory barrier
Summary: Add correct memory barrier to thread timeout / add path. This seems like the fastest way to maintain safety here. We could use a read-biased rw lock instead, but that would mean taking a heavy memory barrier in add() if we do have to add a thread. Reviewed By: davidtgoldblatt Differential Revision: D8161950 fbshipit-source-id: af2bd3a601ced9bb04a8206696e7a998c75f6369
Showing
Please register or sign in to comment