Update git submodules
* Update oslo.utils from branch 'master' - Merge "eventletutils: Optimise EventletEvent.clear()" - eventletutils: Optimise EventletEvent.clear() When EventletEvent.clear() is called twice in succession without an intervening set(), there's no need to replace the underlying eventlet.event.Event object, since it has never been sent. Doing so would have woken other greenthreads waiting on the event to no particular end. When clear() is called after the event has been set(), we already did not do anything special with the existing eventlet.event.Event as we cannot call send() on it twice. We simply replace it with a new one; the code in wait() will handle the situation correctly, since it will wake up (due to the initial event having been sent) and begin waiting on the new eventlet.event.Event instead. This is consistent with the observed behaviour of threading.Event. A new unit test verifies this. Change-Id: Ibd5324926431fc760c3dd0be064324e3009cc2c2
This commit is contained in:
parent
959c9e8d06
commit
66e82fbf2e
|
@ -1 +1 @@
|
|||
Subproject commit 895062f3afc6135ba79267842c8616c4213cd925
|
||||
Subproject commit 9a2ae8affd6c57af3c28471cad2fba4350b4b81b
|
Loading…
Reference in New Issue