patch-2.3.40 linux/include/asm-i386/spinlock.h
Next file: linux/include/asm-m68k/posix_types.h
Previous file: linux/include/asm-i386/smplock.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Jan 20 16:05:28 2000
- Orig file:
v2.3.39/linux/include/asm-i386/spinlock.h
- Orig date:
Tue Dec 14 01:27:24 1999
diff -u --recursive --new-file v2.3.39/linux/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -96,7 +96,7 @@
:"=m" (__dummy_lock(lock)));
}
-#define spin_trylock(lock) (!test_and_set_bit(0,(lock)))
+#define spin_trylock(lock) ({ !test_and_set_bit(0,(lock)); })
/*
* Read-write spinlocks, allowing multiple readers
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)