]> git.ipfire.org Git - thirdparty/coreutils.git/commit
sort: omit unnecessary mutex unlock+lock; simplify heap access
authorPaul R. Eggert <eggert@cs.ucla.edu>
Mon, 26 Jul 2010 03:54:55 +0000 (20:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jul 2010 03:55:21 +0000 (20:55 -0700)
commitde949fc12dffef87e381a821c18887e4efdd1b00
tree276f3cda75e30cb03baddb311434d486a0c16684
parent1563ffd2b1e63c48b5c7a04f8b60556ee56c7154
sort: omit unnecessary mutex unlock+lock; simplify heap access

* src/sort.c (queue_pop): Omit unnecessary unlock+lock after
pthread_cond_wait returns.  Don't access "count" member of the
heap; any efficiency gains should be quite minor, the access
complicates this code, and "count" should be private anyway.
src/sort.c