www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - std.functional.memoize : thread local or __gshared memoization?

reply Timothee Cour via Digitalmars-d <digitalmars-d puremagic.com> writes:
I could look at source to figure it out but others might wonder and I
couldn't find it in the docs in
https://dlang.org/library/std/functional/memoize.html whether memoize
works per thread (thread local) or globally (__gshared)
May 24
parent Paul Backus <snarwin gmail.com> writes:
On Wednesday, 24 May 2017 at 23:56:49 UTC, Timothee Cour wrote:
 I could look at source to figure it out but others might wonder 
 and I couldn't find it in the docs in 
 https://dlang.org/library/std/functional/memoize.html whether 
 memoize works per thread (thread local) or globally (__gshared)
I checked the source, and it's thread-local. (Specifically, it's declared as 'static'.)
May 26