dde_linux26 down_trylock bug
28 Nov
2005
28 Nov
'05
10:24 a.m.
Hi, In dde_linux26/include/ARCH-x86/asm/semaphore.h: static inline int down_trylock(struct semaphore * sem) { return l4semaphore_try_down(&sem->l4_sema); } It seems incorrect. Maybe it should be: static inline int down_trylock(struct semaphore * sem) { return (l4semaphore_try_down(&sem->l4_sema) != 1); } Regards, Wei
28 Nov
28 Nov
12:19 p.m.
Great, thank you for the fix. BTW: dde_linux implements this correctly ;-) Greets -- Christian Helmuth TU Dresden, Dept. of CS Operating Systems Group http://os.inf.tu-dresden.de/~ch12
7400
Age (days ago)
7400
Last active (days ago)
1 comments
2 participants
participants (2)
-
Christian Helmuth -
Wei Shen