Flat combining: Add lock holder with deferred option. Minor fixes.
[folly.git] / folly / experimental / flat_combining / test / FlatCombiningTestHelpers.h
index 07742e12078222e5cb3cd1e28e4874542b0e4420..623563ef6dbfbecba1ac9aeb8b2d4abd3132dca3 100644 (file)
@@ -107,7 +107,7 @@ uint64_t fc_test(
         // test of exclusive access through a lock holder
         {
           std::unique_lock<Mutex> l;
-          ex.acquireExclusive(l);
+          ex.holdLock(l);
           CHECK(!mutex);
           mutex = true;
           VLOG(2) << tid << " " << ex.getVal() << " ...........";