• Pekka Pessi's avatar
    su: added su_root_obtain(), su_root_release() and su_root_has_thread() · 4fb20afe
    Pekka Pessi authored
    When root is created with su_root_create() or cloned with su_clone_start(),
    the resulting root is obtained by the calling or created thread,
    respectively.
    
    The root can be released with su_root_release() and another thread can
    obtain it.
    
    The function su_root_has_thread() can be used to check if a thread has
    obtained or released the root.
    
    Implementation upgraded the su_port_own_thread() method as su_port_thread().
    
    darcs-hash:20071005112209-55b16-a77833d930ab3e9d57c52cd32b01eef5507476d3.gz
    4fb20afe