Brandon> I'm trying to find out if there is a pollable semaphore Brandon> equivalent on Linux. The main idea of a "pollable Brandon> semaphore", is a semaphore with a related file Brandon> descriptor. The file descriptor can be used to select() Brandon> when the semaphore is acquirable. This provides a Brandon> convenient way for users to implement code Brandon> synchronization between threads, where multiple file Brandon> descriptors are already being selected against.
Yes, I believe futexes and specifically FUTEX_FD can be used to implement this. See http://people.redhat.com/~drepper/futex.pdf for full details. - Roland - 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/