Started implementing spinlock