Skip to content
  • Guido Trotter's avatar
    LockSet: make acquire() return the set of names · 0cc00929
    Guido Trotter authored
    In a LockSet acquire() returned True on success. This code changes that to
    return a set containing the names of the elements acquired. This is still a
    true value if we acquired any lock but is slightly more useful (because if
    needed one has access to this data without querying for it). The only change
    happens if acquiring no locks, which though is a usage which should not
    normally happen because it has no practical use.
    
    The patch also changes a some tests to check that the new format is respected.
    
    Reviewed-by: imsnah
    
    0cc00929