Function SpinLock.lock

Blocks until unlock() is called.

void lock() nothrow @nogc @safe shared;