Am 22.07.2015 um 16:08 schrieb Etienne Cimon:

On Wed, 22 Jul 2015 07:09:38 GMT, Taylor Gronka wrote:

For clarity, every variable I define globally in vibe.d is the same as thread-safe, correct? Basically, in regards to vibe.d, terms can mostly be used interchangeably? (With the exception of initializing with __gshared.)

I'm not sure if I said that right. I suppose, for a variable to be global, it must be full of static and const anyways. So, for a variable to be properly global, it must also be thread-safe (although I'm sure there are exceptions/mistakes that can be made). The two goals align.

static is a TLS specifier (thread-local storage), so you have a different instance there on Thread 1, Thread 2...

Should be noted that vibe.d, in addition to the default static
thread-local variables, also provides analogous task-local variables:
http://vibed.org/api/vibe.core.core/TaskLocal