Re: [take25 1/6] kevent: Description.

From: Ulrich Drepper
Date: Thu Nov 23 2006 - 17:36:09 EST


Hans Henrik Happe wrote:
I don't know if this falls under the simplification, but wouldn't there be a race when reading/copying the event data? I guess this could be solved with an extra user index.

That's what I said, reading the value from the ring buffer structure's head would be racy. All this can only work for single threaded code.

--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/