]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/Finisher: avoid memory re-allocations for finisher queue
authorJason Dillaman <dillaman@redhat.com>
Wed, 8 May 2019 18:09:17 +0000 (14:09 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 13 May 2019 16:38:12 +0000 (12:38 -0400)
commitcc7ec3e18d191575c4d94d6f188cada800f51f72
treea8dbef3376db19b95e225e27df1df5d8ed14ac5e
parent99826fbe755c534ec6a8b917c6a9c45c3e08c1e5
common/Finisher: avoid memory re-allocations for finisher queue

Since there is only a single thread associated with the Finisher,
swap between two queues to avoid the need to re-allocate a new
vector for each iteration through the loop. Also replace the
condition broadcast with a signal since there is only a single
thread to wake up.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/common/Finisher.cc
src/common/Finisher.h