1 comments

  • jdw641 hour ago
    It seems like the thread_local CacheIndex only determines which cache to use, but it doesn&#x27;t actually guarantee thread safety for concurrent access to the HashLifeCache itself. What would be a good solution for this?<p>Should I use a mutex for each cache instance? As a beginner developer, my guess is that the original author assumes data races won&#x27;t occur based on the execution timing. However, I&#x27;m really not sure if that assumption is actually correct&#x2F;safe.