Commit 92ee56a3 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

add missing {} in LifoSem

Reviewed By: magedm

Differential Revision: D33763949

fbshipit-source-id: 779c2a3d0337a357395a2554e810e7b0903a86d6
parent 148432cd
...@@ -690,8 +690,9 @@ struct LifoSemBase { ...@@ -690,8 +690,9 @@ struct LifoSemBase {
return head.idx(); return head.idx();
} }
} else { } else {
if (skip_increment) if (skip_increment) {
return 0; return 0;
}
auto after = head.withValueIncr(n); auto after = head.withValueIncr(n);
if (head_->compare_exchange_strong(head, after)) { if (head_->compare_exchange_strong(head, after)) {
// successful incr // successful incr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment