pmwkaa/sophia — pull request #4 by jedisct1 (2013-09-16 04:39:00+00:00)
Title: sp_lock(): insert a pause instruction if a spinlock can't be acquired.

Also yield to another process if acquiring the lock takes too long.
See Intel paper on efficient spinlocks.