« Previous | Next » 

Revision 2a21bc88

Parent f12eadb3
Child a7f5dc98

Added by Iustin Pop over 15 years ago

locking.LockSet: don't modify input arguments

Currently LockSet.acquire() sorts in place it's input argument if it's a
list. This is not good, since callers might depend on a specific
ordering of the input data, and this is a 'hidden' modification.

We fix it by simply using a sorted copy, instead of sorting in place.

Reviewed-by: ultrotter


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences