X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fdetail%2FTurnSequencer.h;h=c3dd4a43e0342f22c04d4f6af77c1f62d33a968d;hb=dbf7c3d20fcfb28b260c7ecce9149f2cf8c37f22;hp=42bb7d01ffdc6d960e017e28e76d7466005c8d5f;hpb=fff701bfc7db2f23becae9da222a63a7ad86177b;p=folly.git diff --git a/folly/detail/TurnSequencer.h b/folly/detail/TurnSequencer.h index 42bb7d01..c3dd4a43 100644 --- a/folly/detail/TurnSequencer.h +++ b/folly/detail/TurnSequencer.h @@ -22,6 +22,7 @@ #include #include +#include namespace folly { @@ -123,7 +124,7 @@ struct TurnSequencer { // the first effectSpinCutoff tries are spins, after that we will // record ourself as a waiter and block with futexWait if (tries < effectiveSpinCutoff) { - asm volatile ("pause"); + asm_volatile_pause(); continue; }