Messages in this thread | | | From | Duncan Sands <> | Subject | Re: [RFC, 2.6] a simple FIFO implementation | Date | Fri, 17 Sep 2004 14:37:57 +0200 |
| |
> + * Note that with only one concurrent reader and one concurrent > + * writer, you don't need extra locking to use these functions. ^^^^^ which functions? (ambiguous) And what does "extra locking" mean?
> + len = min(len, fifo->size - fifo->in + fifo->out);
After all, since you are reading both in and out here, some kind of locking is needed.
Ciao,
Duncan. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |