Previous Next Table of Contents

7. CLI/STI & spin locking

Good code shouldn't contains snd_cli()/snd_sti() calls. Use rather spin locks snd_spin_lock()/snd_spin_unlock() for locking some code. This code is much better for SMP machines.

Note: Debugging code is available and it should be enabled in sndspinlock.h.


Previous Next Table of Contents