std.functional.memoize : thread local or __gshared memoization?

Paul Backus via Digitalmars-d digitalmars-d at puremagic.com
Fri May 26 14:45:45 PDT 2017


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'.)


More information about the Digitalmars-d mailing list