def create_locks():
 l = SHLock()
 wrapper = (DebugRWLockWrapper if tweaks.get(u'newdb_debug_locking', False) else RWLockWrapper)
 return (wrapper(l), wrapper(l, is_shared=False))

def create_locks ( ) : l = SHLock ( ) wrapper = ( DebugRWLockWrapper if tweaks . get ( u'newdb_debug_locking' , False ) else RWLockWrapper ) return ( wrapper ( l ) , wrapper ( l , is_shared = False ) )
return a pair of locks: the read_lock can be acquired by multiple threads simultaneously .