[Click] Spinlock question
Eddie Kohler
kohler at cs.ucla.edu
Wed May 19 03:03:46 EDT 2004
Michael Walfish wrote:
> Eddie wrote:
> | It might make sense for Click to guarantee mutual exclusion between
> | threads and write handlers. Would this help you in any way?
>
> I think so. If I've understood you, then this mutual exclusion would
> prevent me from having to worry about whether a packet processing event
> that's reading a data structure is in fact getting a coherent version of
> the data structure (since a write handler might be mucking with the data
> structure at the same time the packet processing code needs to read the
> data structure).
>
> Thanks!
>
> -Mike
Yes, that's right. You'd still have to worry about _read_ handlers (if the read
handler changed something, or accessed pointer data that the Click thread might
alter), but that's generally less of a problem.
E
More information about the click
mailing list