/mutex

Simple mutex implementation interview question

Primary LanguageGo

mutex

Simple mutex implementation interview question

Task

Implement a simple spinlock based on Go sync/atomic primatives.

var m Mutex
m.Lock()
m.Unlock()

Extra credit