lkml.org 
[lkml]   [2005]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Pollable Semaphores
    From
    Date
        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 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/

    \
     
     \ /
      Last update: 2005-03-22 14:09    [W:2.694 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site