Nir Soffer has posted comments on this change.

Change subject: concurrent: Add Barrier class
......................................................................


Patch Set 11:

(2 comments)

https://gerrit.ovirt.org/#/c/42927/11/tests/concurrentTests.py
File tests/concurrentTests.py:

Line 60:             barrier.wait(0)
Line 61:             t.join()
Line 62: 
Line 63:     @slowtest
Line 64:     def test_wakup_blocked_thread(self):
> wakeup
Will fix in next version.
Line 65:         barrier = concurrent.Barrier(2)
Line 66:         done = threading.Event()
Line 67: 
Line 68:         def waiter():


Line 65:         barrier = concurrent.Barrier(2)
Line 66:         done = threading.Event()
Line 67: 
Line 68:         def waiter():
Line 69:             barrier.wait(2)
> when calling wait, explicitly name timeout=N. it is more readable.
Good idea, will change in next version.
Line 70:             done.set()
Line 71: 
Line 72:         t = threading.Thread(target=waiter)
Line 73:         t.daemon = True


-- 
To view, visit https://gerrit.ovirt.org/42927
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I68525e18f6b3774d7e10af1226a7bc3404c68ae9
Gerrit-PatchSet: 11
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <[email protected]>
Gerrit-Reviewer: Adam Litke <[email protected]>
Gerrit-Reviewer: Ala Hino <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Dima Kuznetsov <[email protected]>
Gerrit-Reviewer: Fabian Deutsch <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Freddy Rolland <[email protected]>
Gerrit-Reviewer: Ido Barkan <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to