[ovirt-devel] [VDSM] [PATCH] Add the missing locked() interface

2014-05-07 Thread Nir Soffer
threading.Lock has a little known locked() method, documented in https://docs.python.org/2.6/library/thread.html#thread.lock.locked This method is not very useful, but since pthreading.Lock must be drop-in replacment for threading.Lock, we must implement it. This patch adds the missing method,

Re: [ovirt-devel] [VDSM] [PATCH] Add the missing locked() interface

2014-05-07 Thread Dan Kenigsberg
On Wed, May 07, 2014 at 12:48:39PM -0400, Nir Soffer wrote: threading.Lock has a little known locked() method, documented in https://docs.python.org/2.6/library/thread.html#thread.lock.locked This method is not very useful, but since pthreading.Lock must be drop-in replacment for