« Previous | Next » 

Revision 0cc00929

ID0cc009290d02ca37258258edc2c4c0274be03dd8
Parent 8b68f394
Child 3f404fc5

Added by Guido Trotter about 15 years ago

LockSet: make acquire() return the set of names

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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences