On Monday, 16 January 2017 at 14:47:23 UTC, Era Scarecrow wrote:
static char[1024*4] buffer; //4k reusable buffer, NOT thread safe
Maybe I'm wrong, but I think it's thread safe. Because static mutable non-shared variables are stored in TLS.
Jack Applegame via Digitalmars-d-learn Thu, 26 Jan 2017 23:06:37 -0800
On Monday, 16 January 2017 at 14:47:23 UTC, Era Scarecrow wrote:
static char[1024*4] buffer; //4k reusable buffer, NOT thread safe
Maybe I'm wrong, but I think it's thread safe. Because static mutable non-shared variables are stored in TLS.