D-Programming-Language/phobos — pull request #2664 by MartinNowak (2014-11-07 23:54:49+00:00)
Title: add callOnce

- uses double-checked locking (the correct one)

- all instances shared the same global mutex

- minimal overhead and simple API