• David 'Digit' Turner's avatar
    bionic: pthread: use private futexes by default for mutexes and condvars · ba9c6f09
    David 'Digit' Turner authored
    Private futexes are a recent kernel addition: faster futexes that cannot be
    shared between processes. This patch uses them by default, unless the PROCESS_SHARED
    attribute flag is used when creating a mutex and/or conditional variable.
    
    Also introduces pthread_condattr_init/destroy/setpshared/getpshared.
    
    Change-Id: I3a0e2116f467072b046524cb5babc00e41057a53
    ba9c6f09
pthread.h 9.84 KB