Module: xenomai-forge Branch: master Commit: c1a261d4f53cac46c6df7ff5988a21b9f9dc6974 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=c1a261d4f53cac46c6df7ff5988a21b9f9dc6974
Author: Philippe Gerum <r...@xenomai.org> Date: Thu Nov 17 22:56:32 2011 +0100 alchemy/buffer: remove wrong and useless code --- lib/alchemy/buffer.c | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/lib/alchemy/buffer.c b/lib/alchemy/buffer.c index 27642af..f0d03a6 100644 --- a/lib/alchemy/buffer.c +++ b/lib/alchemy/buffer.c @@ -333,7 +333,7 @@ ssize_t rt_buffer_write_until(RT_BUFFER *bf, ret = -EINVAL; goto done; } -redo: + for (;;) { /* * We should be able to write the entire message at @@ -387,18 +387,6 @@ redo: goto done; } - /* - * Check whether writers are already waiting for - * sending data, while we are about to wait for - * receiving some. In such a case, we have a - * pathological use of the buffer. We must allow for a - * short read to prevent a deadlock. - */ - if (bcb->fillsz > 0 && syncobj_drain_count(&bcb->sobj)) { - len = bcb->fillsz; - goto redo; - } - if (wait == NULL) { timespec = alchemy_get_timespec(timeout, &ts); wait = threadobj_prepare_wait(struct alchemy_buffer_wait); _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git