]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
throttle: Do not destroy condition variables with waiters 16618/head
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 27 Jul 2017 04:55:36 +0000 (00:55 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 Aug 2017 02:53:12 +0000 (22:53 -0400)
commitdd8aec3cc896667d4d668bf479f93dc357826955
treeeaa914b3a3f972412e350e8c2ce542d6388c241f
parent793ba0443cd366119d89407e30f71975e9a73243
throttle: Do not destroy condition variables with waiters

Destroying a condition variable on which someone is waiting is Undefined
Behavior. it's bad and terrible and awful. On some machines it makes
the destructor just outright hang.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/Throttle.cc
src/common/Throttle.h
src/test/common/Throttle.cc