public bool Lock() { bool enabled = Processor.DisableInterrupts(); #if SINGULARITY_MP spin.Acquire(Thread.CurrentThread); #endif // SINGULARITY_MP return(enabled); }