Consistency in namespace-closing comments
[folly.git] / folly / experimental / hazptr / example / WideCAS.h
index 8cac4f56aa724737d523a0e3ad942154aa22a097..9a3ed2788edf5045a85dc579234b0e35ed1846b5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -48,19 +48,19 @@ class WideCAS {
   bool cas(T& u, T& v) {
     DEBUG_PRINT(this << " " << u << " " << v);
     Node* n = new Node(v);
-    hazptr_owner<Node> hptr;
+    hazptr_holder hptr;
     Node* p;
     do {
       p = hptr.get_protected(p_);
       if (p->val_ != u) { delete n; return false; }
       if (p_.compare_exchange_weak(p, n)) break;
     } while (true);
-    hptr.clear();
+    hptr.reset();
     p->retire();
     DEBUG_PRINT(this << " " << p << " " << u << " " << n << " " << v);
     return true;
   }
 };
 
-} // namespace folly {
-} // namespace hazptr {
+} // namespace folly
+} // namespace hazptr