Thread (25 messages) 25 messages, 7 authors, 2009-05-26

Re: [PATCH V4 1/5] The macro spin_event_timeout() takes a condition and timeout value

From: Arnd Bergmann <arnd@arndb.de>
Date: 2009-05-26 12:49:59
Also in: alsa-devel

On Tuesday 26 May 2009, Geert Uytterhoeven wrote:
However, you can still improve useability by making the macro return the rc,
instead of letting the caller pass it, cfr. wait_event_timeout() and friends.
Either that, or it should at least use the do { ... } while (0) construct
to make the macro a statement. All multi-line macros need to either
use ({ ... }) or do { ... } while (0) to make sure they behave well.

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help