From ad1fc80337b7ffc8591604afe226be2120b2f8a9 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Thu, 18 Apr 2024 10:55:18 +0100 Subject: [PATCH] Document that ThreadCachedInt is derived from folly Signed-off-by: Ian Thomas --- cpp/arcticdb/util/thread_cached_int.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpp/arcticdb/util/thread_cached_int.hpp b/cpp/arcticdb/util/thread_cached_int.hpp index 73a5644761..b756640606 100644 --- a/cpp/arcticdb/util/thread_cached_int.hpp +++ b/cpp/arcticdb/util/thread_cached_int.hpp @@ -12,6 +12,12 @@ namespace arcticdb { + /* + * ThreadCachedInt is a simpler version of + * https://github.com/facebook/folly/blob/main/folly/ThreadCachedInt.h + * containing only the subset of functionality required here and using + * boost::thread_specific_ptr instead of folly's ThreadLocalPtr. + */ template class ThreadCachedInt { public: