Implement TLSLDM.
[oota-llvm.git] / include / llvm / ADT / Statistic.h
index c593c58c127430ef5bf18cbf28e3d87d7e59913d..3a1319f1090ce0c4d42b52b1ec2f62775de3e563 100644 (file)
@@ -56,6 +56,10 @@ public:
   }
   
   const Statistic &operator++() {
+    // FIXME: This function and all those that follow carefully use an
+    // atomic operation to update the value safely in the presence of
+    // concurrent accesses, but not to read the return value, so the
+    // return value is not thread safe.
     sys::AtomicIncrement(&Value);
     return init();
   }