mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
59c2cb7aff
Summary: We want to have a shared pool of `HgImporter` across different threads, but that would require `HgImporter` is safe to be *passed* between threads. (This is not making `HgImporter` entirely thread safe.) However, `HgImporter` currently holds a pointer to the thread local fb303 counter. This diff pushes down `EdenStats` so we only access the thread local stats variable when we need to add counters. This might be a little slower but it does make it safer. Reviewed By: chadaustin Differential Revision: D19053250 fbshipit-source-id: 44a897acc90c6042ae22a0417eece39e099ee13f |
||
---|---|---|
.. | ||
test | ||
CMakeLists.txt | ||
HgBackingStore.cpp | ||
HgBackingStore.h | ||
HgDatapackStore.cpp | ||
HgDatapackStore.h | ||
HgImporter.cpp | ||
HgImporter.h | ||
HgImportPyError.cpp | ||
HgImportPyError.h | ||
HgProxyHash.cpp | ||
HgProxyHash.h | ||
proxy_import_helper.py |