Use spinlock.h instead of continually definign this as static in a bunch of apps