Update ITaskDispatcher.hpp
Eventhough we don't currently use tid anywhere, the intent was that it has to be static - sequentially incrementing across all tasks running under different log managers.
@@ -25,7 +25,7 @@ namespace ARIASDK_NS_BEGIN
/// </summary>
static uint64_t GetNewTid()
{
- std::atomic<uint64_t> lastTid;
+ static std::atomic<uint64_t> lastTid;
return lastTid.fetch_add(1);
}
