On Thursday 10 February 2005 9:39 am, Nishanth Aravamudan wrote: >> It came up on IRC that the wait_cond*() functions from >> usb/serial/gadget.c could be useful in other parts of the kernel. Does >> the following patch make sense towards this?
Sure, if people want to use these. I did not push them because they seemed a bit "heavy weight", but the construct is useful and general. The docs should explain that the purpose is to wait atomically on a complex condition, and that the usage pattern is to hold the lock when using the wait_event_* functions or when changing any variable that might affect the condition and waking up the waiting processes. -- Al - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/