00001 /* ndk - [ spinlock.h ] 00002 * 00003 * Routines for implementing multiprocessor spinlocks 00004 * 00005 * (c)2004 dcipher / neuraldk 00006 * www.neuraldk.org 00007 */ 00008 00018 typedef _Spinlock *Spinlock; 00019 00025 ErrorCode spinlockCreate(Spinlock * spin); 00026 00032 ErrorCode spinlockDestroy(Spinlock * spin); 00033 00040 ErrorCode spinlockLock(Spinlock spin, Timeout timeout); 00041 00047 ErrorCode spinlockUnlock(Spinlock spin); 00048