File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -113,17 +113,12 @@ struct CacheKey
113113 key:: Any
114114end
115115
116- """
117- GlobalMCCache
118-
119- A cache for holding MistyClosures, keyed by CacheKey.
120-
121- The reason to have a type for this, rather than just a global const
122- Dict{CacheKey,MistyClosure}, is thread-safety. The global cache is written to when new
123- TapedTasks are compiled, and if multiple threads are doing this concurrently races might
124- occur. This type uses a ReentrantLock to ensure that any `setindex!` operations are atomic,
125- solving the problem.
126- """
116+ # A cache for holding MistyClosures, keyed by CacheKey.
117+ # The reason to have a type for this, rather than just a global const
118+ # Dict{CacheKey,MistyClosure}, is thread-safety. The global cache is written to when new
119+ # TapedTasks are compiled, and if multiple threads are doing this concurrently races might
120+ # occur. This type uses a ReentrantLock to ensure that any `setindex!` operations are
121+ # atomic, solving the problem.
127122struct GlobalMCCache
128123 cache:: Dict{CacheKey,MistyClosure}
129124 lock:: ReentrantLock
You can’t perform that action at this time.
0 commit comments