Fix a race in fibers::Semaphore
Summary: We should never end up doing compare_exchange_weak with oldVal==0, because that may result in increment/decrement from 0. Reviewed By: yfeldblum Differential Revision: D13514210 fbshipit-source-id: 0ccffe5d9525389ba02208f3bf37ce14acb9f28e
Showing
Please register or sign in to comment